mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 15:36:38 +02:00
add uptime MQTT value
This commit is contained in:
parent
396dfac0d6
commit
db1d1d2057
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue