timeout 3h for remote temperature #1680

This commit is contained in:
MichaelDvP
2024-05-10 14:45:05 +02:00
parent 24af84f27c
commit 4f6399f35e
2 changed files with 33 additions and 22 deletions

View File

@@ -36,8 +36,9 @@ class Roomctrl {
}
private:
static constexpr uint32_t SEND_INTERVAL = 15000; // 15 sec
static constexpr uint8_t HCS = 4; // max 4 heating circuits
static constexpr uint32_t SEND_INTERVAL = 15000; // 15 sec
static constexpr uint32_t TIMEOUT = 10800000; // 3 hour
static constexpr uint8_t HCS = 4; // max 4 heating circuits
enum SendType : uint8_t { TEMP, HUMI };
static uint8_t get_hc(const uint8_t addr);
@@ -52,7 +53,8 @@ class Roomctrl {
static int16_t calc_dew(int16_t temp, uint8_t hum);
static bool switch_off_[HCS];
static uint32_t rc_time_[HCS];
static uint32_t send_time_[HCS];
static uint32_t receive_time_[HCS];
static int16_t remotetemp_[HCS];
static uint8_t remotehum_[HCS];
static uint8_t sendtype_[HCS];