pub trait AirQualityClient {
    fn environment_specified(&self, result: Result<(), ErrorCode>);
    fn co2_data_available(&self, value: Result<u32, ErrorCode>);
    fn tvoc_data_available(&self, value: Result<u32, ErrorCode>);
}
Expand description

Client for receiving Air Quality readings

Required Methods

Called when the environment specify command has completed.

Called when a CO2 or equivalent CO2 (eCO2) reading has completed.

  • value: will contain the latest CO2 reading in ppm. An example value might be 400.

Called when a Total Organic Compound (TVOC) reading has completed.

  • value: will contain the latest TVOC reading in ppb. An example value might be 0.

Implementors