make garage messages be retained.

This commit is contained in:
Joe Tretter
2022-06-25 16:24:40 -05:00
parent ed2e6ba398
commit a709c10611

View File

@@ -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() {