pub struct MeasurmentData {
    pub temperature: f32,
    pub humidity: f32,
    pub pressure: f32,
    pub gas_resistance: Option<f32>,
}
Expand description

Measurment data returned from the sensor

Fields§

§temperature: f32

Temperature in °C

§humidity: f32

Relative humidity in %

§pressure: f32

Pressure in hPa

§gas_resistance: Option<f32>

Gas resistance in Ohms None if gas measurment is disabled or gas measurment hasn’t finished in time according to the gas_measuring bit.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.