From 23928559e1cb49b72c8dcf4cfb0dc751842d44d1 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 18 Jul 2020 11:09:51 +0200 Subject: [PATCH] include txfails in MQTT heartbeat --- src/system.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system.cpp b/src/system.cpp index 361a67291..0a34b6ba5 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -277,10 +277,12 @@ void System::send_heartbeat() { if (rssid != -1) { doc["rssid"] = rssid; } + doc["uptime"] = uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3); doc["uptime_sec"] = uuid::get_uptime_sec(); doc["freemem"] = free_mem(); doc["mqttpublishfails"] = Mqtt::publish_fails(); + doc["txfails"] = EMSESP::txservice_.telegram_fail_count(); Mqtt::publish("heartbeat", doc, false); // send to MQTT with retain off }