From 1d21401bb7b9174de615d38d7838abb7cd7f0760 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 22 Dec 2021 09:14:23 +0100 Subject: [PATCH] automatically reconnect to wifi if disconnected Seriously, why isn't this the default behaviour? --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index b23467f..543b5c0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -263,6 +263,8 @@ void setup() { Serial.println(); Serial.print("[Tally] connected to wifi, ip address "); Serial.println(WiFi.localIP()); + WiFi.setAutoReconnect(true); + WiFi.persistent(true); set_idle();