Store the latest pushed sample for use by BarometricController.
More...
Public Member Functions | |
| bool | is_connected (self) |
| Return whether the sensor is connected and ready. | |
| None | connect (self) |
| Connect to the barometric source. | |
| None | disconnect (self) |
| Disconnect from the barometric source. | |
| BarometricSample | read_barometric (self) |
| Read pressure and optional temperature. | |
Public Member Functions inherited from environmental.barometric_source_if.BarometricSourceIf | |
| BarometricSample | read_environment (self) |
| Compatibility alias for the original generic source API. | |
Store the latest pushed sample for use by BarometricController.
| bool environmental.buffered_barometric_source.BufferedBarometricSource.is_connected | ( | self | ) |
Return whether the sensor is connected and ready.
| True | The sensor is connected and ready. |
| False | The sensor is disconnected or unavailable. |
Reimplemented from environmental.barometric_source_if.BarometricSourceIf.
| BarometricSample environmental.buffered_barometric_source.BufferedBarometricSource.read_barometric | ( | self | ) |
Read pressure and optional temperature.
temperature_c is None for pressure-only sources such as many phone barometers. Reimplemented from environmental.barometric_source_if.BarometricSourceIf.