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