From a709c1061192e5193d18816028071001e11e1817 Mon Sep 17 00:00:00 2001 From: Joe Tretter Date: Sat, 25 Jun 2022 16:24:40 -0500 Subject: [PATCH] make garage messages be retained. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c25393a..1054834 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -148,7 +148,7 @@ void send_mqtt(String value){ serializeJson(doc, sensorStatus); Serial.println(sensorStatus); - mqttClient.publish("Address/Livorno/Garagedoor", sensorStatus); + mqttClient.publish("Address/Livorno/Garagedoor", sensorStatus,true); } void reconnect() {