mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Add MQTT settings to backup/restore #284
This commit is contained in:
parent
632dd3900b
commit
ea5614c700
12 changed files with 89 additions and 47 deletions
|
|
@ -190,10 +190,12 @@ void SocketEmitter::wsEvent(uint8_t num, WStype_t type, uint8_t *payload, size_t
|
|||
Serial.printf("Socket [%u] Connected from %d.%d.%d.%d url: %s\n", num, ip[0], ip[1], ip[2], ip[3], payload);
|
||||
// Send all the current shade settings to the client.
|
||||
sockServer.sendTXT(num, "Connected");
|
||||
sockServer.loop();
|
||||
settings.emitSockets(num);
|
||||
somfy.emitState(num);
|
||||
net.emitSockets(num);
|
||||
git.emitUpdateCheck(num);
|
||||
net.emitSockets(num);
|
||||
sockServer.loop();
|
||||
}
|
||||
break;
|
||||
case WStype_TEXT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue