pub struct VentilationConfig {
pub active: bool,
pub execute: bool,
pub switch_on_temperature: f32,
pub switch_off_temperature: f32,
pub switch_on_when_terminating: bool,
pub saw_tooth_profile_config: SawToothProfileConfig,
pub switch_on_when_out_of_schedule: bool,
pub switch_on_when_external_stop: bool,
pub set_value_check_interval: u64,
}Expand description
Holds the configuration data for the ventilation control. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§active: boolControl will only be active when the flag is set to true.
execute: boolindicates if the thread shall be started or not
switch_on_temperature: f32The temperature at which the ventilation is switched on for 100% of the time. This temperature must be higher than switch_off_temperature. It is overwritten with valid database values once obtained.
switch_off_temperature: f32The temperature at which the ventilation is switched off for 100% of the time. This temperature must be lower than switch_on_temperature. It is overwritten with valid database values once obtained.
switch_on_when_terminating: boolA flag to determine the behavior of the control when the application is terminating If this flag is true, the application will switch on the ventilation when exiting.
saw_tooth_profile_config: SawToothProfileConfigThe configuration of saw tooth profile for generation of low-frequency PWM signal
switch_on_when_out_of_schedule: boolThe strategy when schedule check does not allow operation: true=ventilation will be switched on; false=ventilation will be switched off
switch_on_when_external_stop: boolThe strategy when an external request for stopping ventilation control has been received: true=ventilation will be switched on; false=ventilation will be switched off
set_value_check_interval: u64interval in seconds for polling the database