mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
heartbeat use user's mqtt retain flag
This commit is contained in:
@@ -279,7 +279,7 @@ void System::send_heartbeat() {
|
|||||||
doc["adc"] = analog_;
|
doc["adc"] = analog_;
|
||||||
}
|
}
|
||||||
|
|
||||||
Mqtt::publish_retain(F("heartbeat"), doc.as<JsonObject>(), false); // send to MQTT with retain off. This will add to MQTT queue.
|
Mqtt::publish(F("heartbeat"), doc.as<JsonObject>()); // send to MQTT with retain off. This will add to MQTT queue.
|
||||||
}
|
}
|
||||||
|
|
||||||
// measure and moving average adc
|
// measure and moving average adc
|
||||||
|
|||||||
Reference in New Issue
Block a user