From 53c63da83b8aabd23feb3c406fdea6d5fdd1bae2 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sun, 12 Nov 2023 13:43:26 +0100 Subject: [PATCH] Set WiFi auto reconnect --- src/lib/config.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/config.cpp b/src/lib/config.cpp index d633cac..21f808d 100644 --- a/src/lib/config.cpp +++ b/src/lib/config.cpp @@ -119,6 +119,8 @@ void tryImprovSetup() } else { + WiFi.setAutoConnect(true); + WiFi.setAutoReconnect(true); WiFi.begin(); while (WiFi.status() != WL_CONNECTED)