Trait esp_ward::peripherals::VOCSensor

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

Trait for peripherals that can measure Volatile Organic Compounds (VOCs) or Total Volatile Organic Compounds (TVOCs).

Required Methods§

source

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

Measures the concentration of VOCs in the air.

Implementors§