mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 01:09:51 +03:00
add uptime in seconds to heartbeat MQTT payload
This commit is contained in:
@@ -450,10 +450,11 @@ void Mqtt::send_heartbeat() {
|
||||
return;
|
||||
}
|
||||
|
||||
StaticJsonDocument<90> doc;
|
||||
StaticJsonDocument<EMSESP_MAX_JSON_SIZE_SMALL> doc;
|
||||
|
||||
doc["rssid"] = Network::wifi_quality();
|
||||
doc["uptime"] = uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3);
|
||||
doc["uptime_sec"] = uuid::get_uptime_sec();
|
||||
doc["freemem"] = System::free_mem();
|
||||
doc["mqttpublishfails"] = mqtt_publish_fails_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user