Change topic to something else because mosquitto seems to have a hiccup on the old topic.
This commit is contained in:
@@ -49,7 +49,7 @@ void reconnect() {
|
||||
// Attempt to connect
|
||||
if (client.connect(clientId.c_str())) {
|
||||
Serial.println("MQTT connected");
|
||||
client.subscribe("Address/Livorno/GaragedoorIndicator", 1);
|
||||
client.subscribe("Address/Livorno/GarageDoorIndicator", 1);
|
||||
} else {
|
||||
Serial.print("MQTT failed, rc=");
|
||||
Serial.print(client.state());
|
||||
|
||||
Reference in New Issue
Block a user