This commit is contained in:
Shawn A
2018-02-21 20:12:54 -06:00
parent c2bdbfafb9
commit 7c4963fac2
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -1995,8 +1995,8 @@ String WiFiManager::WiFi_SSID(){
#endif
}
#ifdef ESP32
void WiFiManager::WiFiEvent(WiFiEvent_t event,system_event_info_t info){
#ifdef ESP32
// WiFiManager _WiFiManager;
// Serial.print("WM: EVENT: ");Serial.println(event);
if(event == SYSTEM_EVENT_STA_DISCONNECTED){
@@ -2011,8 +2011,8 @@ void WiFiManager::WiFiEvent(WiFiEvent_t event,system_event_info_t info){
Serial.println("*WM: Event: SYSTEM_EVENT_STA_DISCONNECTED, reconnecting");
WiFi.reconnect();
}
#endif
}
#endif
void WiFiManager::WiFi_autoReconnect(){
#ifdef ESP8266
+3 -2
View File
@@ -301,9 +301,10 @@ class WiFiManager
void WiFi_autoReconnect();
String WiFi_SSID();
#ifdef ESP32
static void WiFiEvent(WiFiEvent_t event, system_event_info_t info);
#endif
// output helpers
String getParamOut();
String getIpForm(String id, String title, String value);
@@ -338,7 +339,7 @@ class WiFiManager
// debugging
boolean _debug = true;
uint8_t _debugLevel = 1;
uint8_t _debugLevel = 2;
Stream& _debugPort; // debug output stream ref
template <typename Generic>
void DEBUG_WM(Generic text);