Skip to content

Commit

Permalink
Signed-off-by: Species5618 <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
species5618 committed Feb 6, 2018
1 parent d8a22ea commit a3bfb22
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/FSWebServerLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,10 +577,23 @@ void AsyncFSWebServer::configureWifi() {
//delay(2000);
//delay(5000); // Wait for WiFi

while (!WiFi.isConnected()) {
delay(1000);
DBG_OUTPUT_PORT.print(".");
}
//remove unreliable wifi connection process SPECIES5618 2018-02-06
//while (!WiFi.isConnected()) {
// delay(1000);
// DBG_OUTPUT_PORT.print(".");
//}

//more rlieable wifi connection hold process SPECIES5618 2018-02-06
DBG_OUTPUT_PORT.print("Attemping WiFi");
while (WiFi.waitForConnectResult() != WL_CONNECTED) {

delay(3000);
DBG_OUTPUT_PORT.print("*");
WiFi.begin(_config.ssid.c_str(), _config.password.c_str());
WiFi.reconnect();



DBG_OUTPUT_PORT.println();
/*if (WiFi.isConnected()) {
currentWifiStatus = WIFI_STA_CONNECTED;
Expand Down

0 comments on commit a3bfb22

Please sign in to comment.