heartbeat use user's mqtt retain flag

This commit is contained in:
proddy
2020-10-05 16:58:33 +02:00
parent 644292f23b
commit 6d4778b24f

View File

@@ -279,7 +279,7 @@ void System::send_heartbeat() {
doc["adc"] = analog_;
}
Mqtt::publish_retain(F("heartbeat"), doc.as<JsonObject>(), false); // send to MQTT with retain off. This will add to MQTT queue.
Mqtt::publish(F("heartbeat"), doc.as<JsonObject>()); // send to MQTT with retain off. This will add to MQTT queue.
}
// measure and moving average adc