pub struct AtlasScientificConfig {Show 15 fields
pub active: bool,
pub execute: bool,
pub address_atlas_scientific_ph: u16,
pub address_atlas_scientific_conductivity: u16,
pub address_atlas_scientific_temperature: u16,
pub sleep_time_millis_ph: u64,
pub sleep_time_millis_conductivity: u64,
pub sleep_time_millis_temperature: u64,
pub max_val_atlas_scientific_ph: f32,
pub min_val_atlas_scientific_ph: f32,
pub max_val_atlas_scientific_temperature: f32,
pub min_val_atlas_scientific_temperature: f32,
pub max_val_atlas_scientific_conductivity: f32,
pub min_val_atlas_scientific_conductivity: f32,
pub measurement_interval_millis: u64,
}Expand description
Holds the configuration data for the Atlas Scientific sensor communication. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§active: boolallows deactivation of the data acquisition
execute: boolindicates if the thread shall be started or not
address_atlas_scientific_ph: u16I2C address of Atlas Scientific pH sensor unit
address_atlas_scientific_conductivity: u16I2C address of Atlas Scientific conductivity sensor unit
address_atlas_scientific_temperature: u16I2C address of Atlas Scientific temperature sensor unit
sleep_time_millis_ph: u64sleep time in milliseconds before after writing before reading from the pH sensor unit
sleep_time_millis_conductivity: u64sleep time in milliseconds before after writing before reading from the conductivity sensor unit
sleep_time_millis_temperature: u64sleep time in milliseconds before after writing before reading from the temperature sensor unit
max_val_atlas_scientific_ph: f32maximum allowed value for pH used to assess if the temperature sensor reading is valid
min_val_atlas_scientific_ph: f32minimum allowed value for pH used to assess if the temperature sensor reading is valid
max_val_atlas_scientific_temperature: f32maximum allowed value for temperature used to assess if the temperature sensor reading is valid
min_val_atlas_scientific_temperature: f32minimum allowed value for temperature used to assess if the temperature sensor reading is valid
max_val_atlas_scientific_conductivity: f32maximum allowed value for conductivity used to assess if the conductivity sensor reading is valid
min_val_atlas_scientific_conductivity: f32minimum allowed value for conductivity used to assess if the conductivity sensor reading is valid
measurement_interval_millis: u64measurement interval in milliseconds