From 6d4778b24f4dd8711febdc2bf262bf7d35714a7e Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 5 Oct 2020 16:58:33 +0200 Subject: [PATCH] heartbeat use user's mqtt retain flag --- src/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.cpp b/src/system.cpp index 39e005b27..b63079f6e 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -279,7 +279,7 @@ void System::send_heartbeat() { doc["adc"] = analog_; } - Mqtt::publish_retain(F("heartbeat"), doc.as(), false); // send to MQTT with retain off. This will add to MQTT queue. + Mqtt::publish(F("heartbeat"), doc.as()); // send to MQTT with retain off. This will add to MQTT queue. } // measure and moving average adc