Struct DataLoggerConfig

Source
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: bool

data logging will only be active when the flag is set to true

§execute: bool

indicates if the thread shall be started or not

§use_sql_timestamp: bool

switch indicating if a self-generated timestamp or the database-generated timestamp shall be used

§logging_interval: u64

interval 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: bool

switch if output to file (in ramdisk) shall be written

§output_file_name_timestamp: String

output file name (in ramdisk) for the current timestamp

§output_file_name_water_temperature: String

output file name (in ramdisk) for current value of water temperature

§output_file_name_water_temperature_filtered: String

output file name (in ramdisk) for current value of water temperature filtered

§output_file_name_pH: String

output file name (in ramdisk) for the current value of pH

§output_file_name_pH_filtered: String

output file name (in ramdisk) for the current value of pH filtered

§output_file_name_conductivity: String

output file name (in ramdisk) for the current value of conductivity

§output_file_name_conductivity_filtered: String

output file name (in ramdisk) for the current value of conductivity filtered

§output_file_name_tank_level_switch_position: String

output file name (in ramdisk) for the current value of tank level switch position

§output_file_name_tank_level_switch_invalid: String

output file name (in ramdisk) for the current value of tank level switch invalid

§output_file_name_tank_level_switch_position_stabilized: String

output file name (in ramdisk) for the current value of tank level switch position stabilized

§output_file_name_ventilation_is_on: String

output file name (in ramdisk) for the current value of ventilation

§output_file_name_heating_is_on: String

output file name (in ramdisk) for the current value of heating

§output_file_name_ambient_temperature: String

output file name (in ramdisk) for the current value of ambient air temperature

§output_file_name_humidity: String

output file name (in ramdisk) for the current value of air humidity

§output_file_name_refill_in_progress: String

output file name (in ramdisk) for the current refill pump status

§initial_sleep_time_millis: u64

sleep time in milliseconds before starting the data recording

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for DataLoggerConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T