Browse Source

utils: interval value is in seconds

master
Maxim Prokhorov 5 years ago
parent
commit
57c9359622
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/utils.ino

+ 1
- 1
code/espurna/utils.ino View File

@ -247,7 +247,7 @@ void heartbeat() {
#if MQTT_SUPPORT #if MQTT_SUPPORT
if (!serial && (_heartbeat_mode == HEARTBEAT_REPEAT || systemGetHeartbeat())) { if (!serial && (_heartbeat_mode == HEARTBEAT_REPEAT || systemGetHeartbeat())) {
if (hb_cfg & Heartbeat::Interval) if (hb_cfg & Heartbeat::Interval)
mqttSend(MQTT_TOPIC_INTERVAL, String(getHeartbeatInterval() / 1000).c_str());
mqttSend(MQTT_TOPIC_INTERVAL, String(getHeartbeatInterval()).c_str());
if (hb_cfg & Heartbeat::App) if (hb_cfg & Heartbeat::App)
mqttSend(MQTT_TOPIC_APP, APP_NAME); mqttSend(MQTT_TOPIC_APP, APP_NAME);


Loading…
Cancel
Save