adds esp32 autoreconnector

Using static event cb for now, feel free to improve, this functionality should be fixed in core soon
This commit is contained in:
Shawn A
2018-01-24 13:13:25 -06:00
parent e5879b2101
commit ceaf53f604
2 changed files with 33 additions and 2 deletions
+7 -2
View File
@@ -172,6 +172,8 @@ class WiFiManager
void setShowStaticFields(boolean alwaysShow);
//if true disable captive portal redirection
void setCaptivePortalEnable(boolean enabled);
// if true enable autoreconnecting
void setWiFiAutoReconnect(boolean enabled);
private:
std::unique_ptr<DNSServer> dnsServer;
@@ -221,7 +223,8 @@ class WiFiManager
boolean _shouldBreakAfterConfig = false;
boolean _tryWPS = false;
boolean _configPortalIsBlocking = true;
boolean _wifiAutoReconnect = false;
const char* _customHeadElement = "";
//String getEEPROMString(int start, int len);
@@ -254,7 +257,9 @@ class WiFiManager
bool WiFi_eraseConfig();
uint8_t WiFi_softap_num_stations();
bool WiFi_hasAutoConnect();
void WiFi_autoReconnect();
static void WiFiEvent(WiFiEvent_t event, system_event_info_t info);
void debugSoftAPConfig();
String getParamOut();