Create publish_status() method in the heater driver, add a status field to indicate if the temperature setpoint has been met within 2.5C, breakout update_params() method from the Heater::Run() method and simplify logic.

This commit is contained in:
mcsauder
2021-04-13 20:36:01 -06:00
committed by Daniel Agar
parent 3dad16bc40
commit 3b72f3b641
4 changed files with 73 additions and 60 deletions

View File

@@ -3,6 +3,7 @@ uint64 timestamp # time since system start (microseconds)
uint32 device_id
bool heater_on
bool temperature_target_met
float32 temperature_sensor
float32 temperature_target