automatically reconnect to wifi if disconnected
Seriously, why isn't this the default behaviour?
This commit is contained in:
parent
9b32d25c82
commit
1d21401bb7
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue