Refactor WebSocket handling: add NFC data sending to clients and improve connection logging; adjust task priority for better scheduling

This commit is contained in:
Manuel Weiser committed 2026-02-19 17:16:07 +01:00
1 parent 13a0acf2ac
commit ad145c7d7a
3 files changed
+25 -6

No files matched your search

+2
View File
@@ -119,6 +119,8 @@ void loop() {
if (intervalElapsed(currentMillis, lastTopRowUpdateTime, DISPLAY_UPDATE_INTERVAL))
{
oledShowTopRow();
// Clean up dead websocket clients periodically instead of on connect
if(currentMillis % 10000 < 50) ws.cleanupClients();
}
// Periodic FilaMan heartbeat