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