feat: enhance WiFi stability and performance with async TCP optimizations and heartbeat retry logic

This commit is contained in:
Manuel Weiser committed 2026-03-29 10:13:46 +02:00
1 parent a14ab8fa55
commit 0f8d3d470d
5 files changed
+103 -43

No files matched your search

+8 -2
View File
@@ -141,8 +141,14 @@ void loop() {
{
oledShowTopRow();
oledCheckSleep(); // Put display to sleep if timeout elapsed
// Clean up dead websocket clients periodically instead of on connect
if(currentMillis % 10000 < 50) ws.cleanupClients();
}
// WebSocket Cleanup alle 5 Sekunden (häufiger als vorher)
// Tote Clients können WiFi-Ressourcen blockieren
static unsigned long lastWsCleanup = 0;
if (currentMillis - lastWsCleanup >= 5000) {
ws.cleanupClients();
lastWsCleanup = currentMillis;
}
// Periodic FilaMan heartbeat