Changed REPORT_FREE_HEAP
to REPORT_METRICS
and included uptime there as well.
This commit is contained in:
parent
12c5bc229d
commit
4064357d5c
@ -70,9 +70,10 @@ void loop() {
|
|||||||
FastLED.show();
|
FastLED.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
EVERY_N_SECONDS(5) {
|
EVERY_N_SECONDS(15) {
|
||||||
if (REPORT_FREE_HEAP) {
|
if (REPORT_METRICS) {
|
||||||
mqtt_publish("free_heap", ESP.getFreeHeap());
|
mqtt_publish("free_heap", ESP.getFreeHeap());
|
||||||
|
mqtt_publish("uptime", millis()/1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user