Browse Source

Merge pull request #70 from sude22/AddUptimeMqtt

add uptime MQTT value
pull/71/head
lumapu 3 years ago
committed by GitHub
parent
commit
10b3978fa3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/esp8266/app.cpp

2
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) {

Loading…
Cancel
Save