mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 13:52:15 +01:00
Merge remote-tracking branch 'origin/main' into chore/debug-serial-921600
This commit is contained in:
commit
cb9ca4ce29
3 changed files with 6 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -27,9 +27,6 @@ elf_archive/
|
||||||
coredump_report.txt
|
coredump_report.txt
|
||||||
coredump.bin
|
coredump.bin
|
||||||
|
|
||||||
# Project Specific / Generated Source
|
|
||||||
src/SomfyController.ino.cpp
|
|
||||||
|
|
||||||
# Ignore Somfy INO/Bin files
|
# Ignore Somfy INO/Bin files
|
||||||
SomfyController.ino.XIAO_ESP32S3.bin
|
SomfyController.ino.XIAO_ESP32S3.bin
|
||||||
SomfyController.ino.esp32c3.bin
|
SomfyController.ino.esp32c3.bin
|
||||||
|
|
|
||||||
|
|
@ -210,7 +210,12 @@ void SocketEmitter::wsEvent(AsyncWebSocket *server, AsyncWebSocketClient *client
|
||||||
slots[slot].connectedAt = millis();
|
slots[slot].connectedAt = millis();
|
||||||
slots[slot].lastPing = 0;
|
slots[slot].lastPing = 0;
|
||||||
client->text("Connected");
|
client->text("Connected");
|
||||||
client->setCloseClientOnQueueFull(false);
|
// A client that stops reading (a frozen browser tab) keeps its TCP link
|
||||||
|
// up, so nothing else ever closes it, and every message dropped for it
|
||||||
|
// logged a warning that held up loop() for ~10ms. Closing it frees the
|
||||||
|
// queue; the page and Home Assistant reconnect and get the full state
|
||||||
|
// again from delayInit().
|
||||||
|
client->setCloseClientOnQueueFull(true);
|
||||||
sockEmit.delayInit(slot);
|
sockEmit.delayInit(slot);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue