automatically reconnect to wifi if disconnected

Seriously, why isn't this the default behaviour?
This commit is contained in:
Franzi 2021-12-22 09:14:23 +01:00
parent 9b32d25c82
commit 1d21401bb7
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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();