mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-15 12:19:58 +03:00
mqtt heartbeat, no need to check if connected
This commit is contained in:
@@ -731,11 +731,6 @@ void System::heartbeat_json(JsonObject output) {
|
||||
|
||||
// send periodic MQTT message with system information
|
||||
void System::send_heartbeat() {
|
||||
// don't send heartbeat if WiFi or MQTT is not connected
|
||||
if (!Mqtt::connected()) {
|
||||
return;
|
||||
}
|
||||
|
||||
refreshHeapMem(); // refresh free heap and max alloc heap
|
||||
|
||||
JsonDocument doc;
|
||||
|
||||
Reference in New Issue
Block a user