Changed ssid psk gets to peristent

Status would not show existing saved ssid psk or status if connect failed, as current config is empty if conx fails, this might break something not sure what else I am using non persistent checking for
This commit is contained in:
tablatronix
2021-02-03 10:01:10 -06:00
parent e933a20d20
commit f9b86f6870
3 changed files with 41 additions and 7 deletions
+5 -3
View File
@@ -3399,10 +3399,12 @@ String WiFiManager::WiFi_psk(bool persistent) const {
#ifdef ESP32
void WiFiManager::WiFiEvent(WiFiEvent_t event,system_event_info_t info){
if(!_hasBegun){
#ifdef WM_DEBUG_LEVEL
// DEBUG_WM(DEBUG_VERBOSE,"[ERROR] WiFiEvent, not ready");
#ifdef WM_DEBUG_LEVEL
// DEBUG_WM(DEBUG_VERBOSE,"[ERROR] WiFiEvent, not ready");
#endif
Serial.println(F("[ERROR] wm not ready"));
// Serial.println(F("\n[EVENT] WiFiEvent logging (wm debug not available)"));
// Serial.print(F("[EVENT] ID: "));
// Serial.println(event);
return;
}
#ifdef WM_DEBUG_LEVEL