pub struct DataLoggerConfig {Show 24 fields
pub active: bool,
pub execute: bool,
pub use_sql_timestamp: bool,
pub logging_interval: u64,
pub filter_coefficient_water_temperature: IIRFilterConfig<()>,
pub filter_coefficient_pH: IIRFilterConfig<()>,
pub filter_coefficient_conductivity: IIRFilterConfig<()>,
pub output_to_disk: bool,
pub output_file_name_timestamp: String,
pub output_file_name_water_temperature: String,
pub output_file_name_water_temperature_filtered: String,
pub output_file_name_pH: String,
pub output_file_name_pH_filtered: String,
pub output_file_name_conductivity: String,
pub output_file_name_conductivity_filtered: String,
pub output_file_name_tank_level_switch_position: String,
pub output_file_name_tank_level_switch_invalid: String,
pub output_file_name_tank_level_switch_position_stabilized: String,
pub output_file_name_ventilation_is_on: String,
pub output_file_name_heating_is_on: String,
pub output_file_name_ambient_temperature: String,
pub output_file_name_humidity: String,
pub output_file_name_refill_in_progress: String,
pub initial_sleep_time_millis: u64,
}Expand description
Holds the configuration data for the regular data logging to SQL database. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§active: booldata logging will only be active when the flag is set to true
execute: boolindicates if the thread shall be started or not
use_sql_timestamp: boolswitch indicating if a self-generated timestamp or the database-generated timestamp shall be used
logging_interval: u64interval of the data logger in seconds
filter_coefficient_water_temperature: IIRFilterConfig<()>filter coefficient for the filtered version of the water temperature signal
filter_coefficient_pH: IIRFilterConfig<()>filter coefficient for the filtered version of the pH signal
filter_coefficient_conductivity: IIRFilterConfig<()>filter coefficient for the filtered version of the conductivity signal
output_to_disk: boolswitch if output to file (in ramdisk) shall be written
output_file_name_timestamp: Stringoutput file name (in ramdisk) for the current timestamp
output_file_name_water_temperature: Stringoutput file name (in ramdisk) for current value of water temperature
output_file_name_water_temperature_filtered: Stringoutput file name (in ramdisk) for current value of water temperature filtered
output_file_name_pH: Stringoutput file name (in ramdisk) for the current value of pH
output_file_name_pH_filtered: Stringoutput file name (in ramdisk) for the current value of pH filtered
output_file_name_conductivity: Stringoutput file name (in ramdisk) for the current value of conductivity
output_file_name_conductivity_filtered: Stringoutput file name (in ramdisk) for the current value of conductivity filtered
output_file_name_tank_level_switch_position: Stringoutput file name (in ramdisk) for the current value of tank level switch position
output_file_name_tank_level_switch_invalid: Stringoutput file name (in ramdisk) for the current value of tank level switch invalid
output_file_name_tank_level_switch_position_stabilized: Stringoutput file name (in ramdisk) for the current value of tank level switch position stabilized
output_file_name_ventilation_is_on: Stringoutput file name (in ramdisk) for the current value of ventilation
output_file_name_heating_is_on: Stringoutput file name (in ramdisk) for the current value of heating
output_file_name_ambient_temperature: Stringoutput file name (in ramdisk) for the current value of ambient air temperature
output_file_name_humidity: Stringoutput file name (in ramdisk) for the current value of air humidity
output_file_name_refill_in_progress: Stringoutput file name (in ramdisk) for the current refill pump status
initial_sleep_time_millis: u64sleep time in milliseconds before starting the data recording