Skip to content

Commit

Permalink
Update FSWebServerLib.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
species5618 authored Mar 8, 2018
1 parent 9f50dda commit bbbf791
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FSWebServerLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,8 @@ void AsyncFSWebServer::configureWifi() {
//disconnect required here
//improves reconnect reliability
WiFi.disconnect();

//encourge clean recovery after disconnect species5618, 08-March-2018
WiFi.setAutoReconnect(true) ;
WiFi.mode(WIFI_STA);

DEBUGLOG("Connecting to %s\r\n", _config.ssid.c_str());
Expand Down

0 comments on commit bbbf791

Please sign in to comment.