Give this device it's own MQTT topic
This commit is contained in:
@@ -51,7 +51,7 @@ void reconnect() {
|
|||||||
// Attempt to connect
|
// Attempt to connect
|
||||||
if (client.connect(clientId.c_str())) {
|
if (client.connect(clientId.c_str())) {
|
||||||
Serial.println("MQTT connected");
|
Serial.println("MQTT connected");
|
||||||
client.subscribe("Address/Livorno/Garagedoor",1);
|
client.subscribe("Address/Livorno/GaragedoorIndicator",1);
|
||||||
} else {
|
} else {
|
||||||
Serial.print("MQTT failed, rc=");
|
Serial.print("MQTT failed, rc=");
|
||||||
Serial.print(client.state());
|
Serial.print(client.state());
|
||||||
|
|||||||
Reference in New Issue
Block a user