pub struct HeatingConfig {
pub active: bool,
pub execute: bool,
pub switch_on_temperature: f32,
pub switch_off_temperature: f32,
pub stop_on_refill_error: bool,
pub stop_on_refill_error_delay: u32,
pub saw_tooth_profile_config: SawToothProfileConfig,
pub heater_power: f32,
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 heating 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 heater is switched on for 100% of the time. This temperature must be lower than switch_off_temperature. It is overwritten with valid database values once obtained.
switch_off_temperature: f32The temperature at which the heater is switched off for 100% of the time. This temperature must be higher than switch_on_temperature. It is overwritten with valid database values once obtained.
stop_on_refill_error: boolFlag to determine behavior in case the refill control has a problem and the water level stays low for longer periods of time. If this flag is true, then the heating control will switch off the heater regardless of measured temperature to avoid overheating of the fish tank or the heater itself. Background: If the water level is too low, the temperature sensor may be exposed to ambient air instead of water. This condition results in a wrong temperature reading and thus in the wrong actuation of the heater. Furthermore, exposing the heater to air instead of water and switching it on will not allow the heater to dissipate the heat, and it therefore might suffer damage.
stop_on_refill_error_delay: u32Number of seconds which need to pass with low water level before the heater is switched off
saw_tooth_profile_config: SawToothProfileConfigConfiguration of saw tooth profile for generation of low-frequency PWM signal
heater_power: f32Electrical power consumption of heater in Watt
switch_on_when_out_of_schedule: boolstrategy when schedule check does not allow operation: true=heating will be switched on; false=heating will be switched off
switch_on_when_external_stop: boolstrategy when the external request for stopping heating control has been received: true=heating will be switched on; false=heating will be switched off
set_value_check_interval: u64interval in seconds for polling the database
Trait Implementations§
Source§impl Clone for HeatingConfig
impl Clone for HeatingConfig
Source§fn clone(&self) -> HeatingConfig
fn clone(&self) -> HeatingConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more