Changed REPORT_FREE_HEAP to REPORT_METRICS and included uptime there as well.

This commit is contained in:
Fabian Schlenz 2019-05-31 23:59:32 +02:00
parent 12c5bc229d
commit 4064357d5c

View File

@ -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);
} }
} }