From 1f41d79afbacfd1df506570279f73a1b9d9e1295 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Fri, 22 Nov 2019 15:22:05 +0300 Subject: [PATCH] Fix heartbeat check for thermostat, add Bssid for InfluxDB (#2002) --- code/espurna/utils.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/espurna/utils.ino b/code/espurna/utils.ino index a0c35b9c..ea627187 100644 --- a/code/espurna/utils.ino +++ b/code/espurna/utils.ino @@ -319,7 +319,7 @@ void heartbeat() { mqttSend(MQTT_TOPIC_HOLD_TEMP "_" MQTT_TOPIC_HOLD_TEMP_MAX, String(_temp_range.max).c_str()); } - if (hb_cfg & Heartbeat::Remote_temp) { + if (hb_cfg & Heartbeat::RemoteTemp) { char remote_temp[16]; dtostrf(_remote_temp.temp, 1, 1, remote_temp); mqttSend(MQTT_TOPIC_REMOTE_TEMP, remote_temp); @@ -354,6 +354,9 @@ void heartbeat() { if (hb_cfg & Heartbeat::Ssid) idbSend(MQTT_TOPIC_SSID, WiFi.SSID().c_str()); + + if (hb_cfg & Heartbeat::Bssid) + idbSend(MQTT_TOPIC_BSSID, WiFi.BSSIDstr().c_str()); #endif }