Skip to content

Commit

Permalink
Merge pull request lumapu#70 from sude22/AddUptimeMqtt
Browse files Browse the repository at this point in the history
add uptime MQTT value
  • Loading branch information
lumapu authored Jun 10, 2022
2 parents 396dfac + db1d1d2 commit 10b3978
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/esp8266/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 10b3978

Please sign in to comment.