pub struct SensorManagerConfig {
pub use_simulator: bool,
pub execute: bool,
pub replacement_value_ambient_temperature: f32,
pub replacement_value_ambient_humidity: f32,
pub replacement_value_water_temperature: f32,
pub replacement_value_ph: f32,
pub replacement_value_conductivity: f32,
pub source_water_temperature: String,
pub source_ambient_temperature: String,
}Expand description
Holds the configuration data for the measurement of ambient signals from DHT sensor The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§use_simulator: boolflag to determine if the application shall communicate with hardware directly or via TCP with a simulator
execute: boolindicates if the thread shall be started or not
replacement_value_ambient_temperature: f32replacement value for ambient temperature in case reading from DHT22 sensor fails
replacement_value_ambient_humidity: f32replacement value for ambient humidity in case reading from DHT22 sensor fails
replacement_value_water_temperature: f32replacement value for water temperature in case reading from I2C fails
replacement_value_ph: f32replacement value for pH in case reading from I2C fails
replacement_value_conductivity: f32replacement value for conductivity in case reading from I2C fails
source_water_temperature: Stringdefinition of the source for the water temperature - valid values are “ds18b20” or “atlas_scientific”.
source_ambient_temperature: Stringdefinition of the source for the ambient temperature - valid values are “ds18b20” or “dht”.