clear wifi strings

This commit is contained in:
Shawn A
2018-09-04 16:36:58 -05:00
parent 3a0723cf66
commit 7ab5f6d5b2
+3
View File
@@ -606,6 +606,9 @@ uint8_t WiFiManager::processConfigPortal(){
return WL_CONNECT_FAILED; // CONNECT FAIL
}
else{
// clear save strings
_ssid = "";
_pass = "";
// if connect fails, turn sta off to stabilize AP
WiFi_Disconnect();
WiFi_enableSTA(false);