Expand description
Contains functionality to control the heater
Structsยง
- Heating
- Contains the configuration and the implementation for the heating control. Thread communication is as follows:
- Heating
Mutexes - Contains
Arc<Mutex>-wrapped shared data points accessed by the heating control.
Constantsยง
- CYCLE_
TIME_ ๐HEATING_ MILLIS - MAX_
MUTEX_ ๐ACCESS_ DURATION_ MILLIS - allow max. 10 milliseconds for mutex to be blocked by any other thread
- TIME_
INCREMENT_ ๐HEATING_ SECS
Traitsยง
- Heating
Stats Data Transfer Trait - Trait for the execution of data transfer to SQL database after midnight has arrived. This trait allows running the main control with a mock implementation for testing.
Functionsยง
- actuate_
heater ๐ - Sends a command to the relay manager to actuate the heater and waits for a response.
- switch_
off_ ๐heater - Commands the relay manager to switch off the heater.
- switch_
on_ ๐heater - Commands the relay manager to switch on the heater.