From 4064357d5c8ba92167dd0929fa1a11dcc0ce6807 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Fri, 31 May 2019 23:59:32 +0200 Subject: [PATCH] Changed `REPORT_FREE_HEAP` to `REPORT_METRICS` and included uptime there as well. --- src/pitrix.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pitrix.cpp b/src/pitrix.cpp index 993c574..95a2bfc 100644 --- a/src/pitrix.cpp +++ b/src/pitrix.cpp @@ -70,9 +70,10 @@ void loop() { FastLED.show(); } - EVERY_N_SECONDS(5) { - if (REPORT_FREE_HEAP) { + EVERY_N_SECONDS(15) { + if (REPORT_METRICS) { mqtt_publish("free_heap", ESP.getFreeHeap()); + mqtt_publish("uptime", millis()/1000); } }