Trait esp_ward::peripherals::CO2Sensor

source ·
pub trait CO2Sensor {
    // Required method
    fn get_co2(&mut self) -> Result<f32, PeripheralError>;
}
Expand description

Trait for peripherals that can measure CO2 (or CO2 equivalent) levels.

Required Methods§

source

fn get_co2(&mut self) -> Result<f32, PeripheralError>

Measures the CO2 (or CO2eq) concentration in the air.

Implementors§