From db1d1d205788138339a4cc50a8896ec7ecc69688 Mon Sep 17 00:00:00 2001 From: sude22 Date: Fri, 10 Jun 2022 10:11:26 +0200 Subject: [PATCH] add uptime MQTT value --- tools/esp8266/app.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/esp8266/app.cpp b/tools/esp8266/app.cpp index 9c7acb38..79c4b045 100644 --- a/tools/esp8266/app.cpp +++ b/tools/esp8266/app.cpp @@ -266,6 +266,8 @@ void app::loop(void) { } snprintf(val, 10, "%d", ESP.getFreeHeap()); mMqtt.sendMsg("free_heap", val); + snprintf(val, 10, "%d", millis()/1000); + mMqtt.sendMsg("uptime", val); } if(mSerialValues) {