mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 09:41:19 +00:00
Update bedroom lamp logic
This commit is contained in:
parent
fd1e6994da
commit
f6d6bd4012
@ -189,6 +189,7 @@ void reconnect() {
|
|||||||
if (client.connect(mqtt_client)) {
|
if (client.connect(mqtt_client)) {
|
||||||
Serial.println("connected");
|
Serial.println("connected");
|
||||||
//setColor(0, 255, 255); // green
|
//setColor(0, 255, 255); // green
|
||||||
|
setColor(0, 0, 0); // Everything ok, it's connected to mqtt broker
|
||||||
client.subscribe(subscribeLedTopic);
|
client.subscribe(subscribeLedTopic);
|
||||||
client.subscribe(subscribeClapTopic);
|
client.subscribe(subscribeClapTopic);
|
||||||
String ipString = "{\"Name\":\"BedroomLed\",\"IpAddress\":\""+ WiFi.localIP().toString()+"\"}";
|
String ipString = "{\"Name\":\"BedroomLed\",\"IpAddress\":\""+ WiFi.localIP().toString()+"\"}";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user