From 5d0eb0694ba802d98857566b33761a10a976d64e Mon Sep 17 00:00:00 2001 From: x Date: Thu, 20 Jun 2024 12:50:20 +0200 Subject: [PATCH] delay() keeps WiFi running If you have a loop somewhere in your sketch that takes a lot of time (>50ms) without calling delay, you might consider adding a call to delay function to keep the WiFi stack running smoothly. Source: https://web.archive.org/web/20240620105303/https://arduino-esp8266.readthedocs.io/en/3.0.0/reference.html#timing-and-delays --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 1ffc107..ada0b60 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -55,5 +55,5 @@ void ensureWiFiConnection() { void loop() { ensureWiFiConnection(); testInternet(); - delay(5000); // TODO: cleaner interval between tests + delay(5000); }