Update bedroom lamp logic

This commit is contained in:
Thomas Fransolet 2021-03-10 15:33:21 +01:00
parent fd1e6994da
commit f6d6bd4012

View File

@ -189,6 +189,7 @@ void reconnect() {
if (client.connect(mqtt_client)) {
Serial.println("connected");
//setColor(0, 255, 255); // green
setColor(0, 0, 0); // Everything ok, it's connected to mqtt broker
client.subscribe(subscribeLedTopic);
client.subscribe(subscribeClapTopic);
String ipString = "{\"Name\":\"BedroomLed\",\"IpAddress\":\""+ WiFi.localIP().toString()+"\"}";