From 620432e4b471025683bb5020fc88e141e645449f Mon Sep 17 00:00:00 2001 From: karan6190 Date: Sat, 24 Feb 2018 11:36:18 +0530 Subject: [PATCH] --connectio problem --rebooting after saving the credentials --- WiFiManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 54fbbc5..fe1645d 100755 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -213,6 +213,8 @@ boolean WiFiManager::startConfigPortal(char const *apName, char const *apPasswo // using user-provided _ssid, _pass in place of system-stored ssid and pass if (connectWifi(_ssid, _pass) != WL_CONNECTED) { DEBUG_WM(F("Failed to connect.")); + ESP.restart(); + delay(1000); } else { //connected WiFi.mode(WIFI_STA);