pub struct BallingConfig {
pub active: bool,
pub execute: bool,
pub pump1_active: bool,
pub pump2_active: bool,
pub pump3_active: bool,
pub pump4_active: bool,
pub schedule_check_interval: u32,
pub dosing_interval_pump1: u32,
pub dosing_interval_pump2: u32,
pub dosing_interval_pump3: u32,
pub dosing_interval_pump4: u32,
pub pump_switch_delay_millis: u32,
}Expand description
Holds the configuration data for the balling dosing 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
pump1_active: boolpump #1 will only be used when the flag is set to true
pump2_active: boolpump #2 will only be used when the flag is set to true
pump3_active: boolpump #3 will only be used when the flag is set to true
pump4_active: boolpump #4 will only be used when the flag is set to true
schedule_check_interval: u32interval for the main control in seconds
dosing_interval_pump1: u32inject Balling minerals with pump 1 after each period
dosing_interval_pump2: u32inject Balling minerals with pump 2 after each period
dosing_interval_pump3: u32inject Balling minerals with pump 3 after each period
dosing_interval_pump4: u32inject Balling minerals with pump 4 after each period
pump_switch_delay_millis: u32wait for a fixed period between dosings from different pumps