Skip to content

Commit

Permalink
#18 try to reconnect to AP if connect fail
Browse files Browse the repository at this point in the history
  • Loading branch information
merlokk committed May 3, 2017
1 parent 6db2c51 commit a0e52c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ESP8266EASTRON/general.ino
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,9 @@ void generalSetup() {

// pause for connecting
if (WiFi.status() != WL_CONNECTED) {
delay(1000);
DEBUG_WPRINTLN(F("Wifi is not connected. Trying to reconnect..."));
WiFi.begin();
delay(5000);
}

// NTP config
Expand Down

0 comments on commit a0e52c3

Please sign in to comment.