diff --git a/README.md b/README.md index 9e0f564..1de6c69 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,9 @@ Full documentation is available on https://Hieromon.github.io/AutoConnect, some ## Change log +### [0.9.4] May 5, 2018. +- Supports AutoConnectConfig::autoReconnect option, it will scan the WLAN when it can not connect to the default SSID, apply the applicable credentials if it is saved, and try reconnecting. + ### [0.9.3] March 23, 2018. - Supports a static IP address assignment. diff --git a/docs/advancedusage/index.html b/docs/advancedusage/index.html index b794657..a01c634 100644 --- a/docs/advancedusage/index.html +++ b/docs/advancedusage/index.html @@ -365,6 +365,13 @@ 404 handler + + +
Registering the "not found" handler is a different way than ESP8266WebServer. The onNotFound of ESP8266WebServer does not work with AutoConnect. AutoConnect overrides ESP8266WebServer::onNotFound to handle a captive portal. To register "not found" handler, use AutoConnect::onNotFound.
+When the captive portal is started, SoftAP starts and the STA is disconnected. The current SSID setting memorized in ESP8266 will be lost.
+If the autoReconnect option of the AutoConnectConfig class is enabled, it automatically attempts to reconnect to the disconnected past access point. When the autoReconnect option is specified, AutoConnect will not start SoftAP immediately if the first WiFi.begin fails. It will scan WiFi signal and the same connection information as the detected BSSID is stored in EEPROM as AutoConnect's credentials, explicitly apply it with WiFi.begin and rerun.
AutoConnect Portal; +AutoConnectConfig Config; +Config.autoReconnect = true; +Portal.config(Config); +Portal.begin(); +
An autoReconnect option is available to AutoConnect::begin without SSID and pass passphrase.
By default, AutoConnect saves the credentials of the established connection in EEPROM. You can disable it with the autoSave parameter specified by AutoConnectConfig.
AutoConnect Portal; diff --git a/docs/api/index.html b/docs/api/index.html index b7ffd52..d803df1 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -554,6 +554,13 @@ apip + + +
void handleClient()
Process the AutoConnect menu interface. It will be processed the client request too contained in the user sketch handler by calling the host handleClient::ESP8266WebServer from the Autoconnect internally.
+Process the AutoConnect menu interface. It will be processed the client request too contained in the user sketch handler by calling from inside of AutoConnect to the hosted ESP8266WebServer::handleClient.
void handleRequest()
Automatically reconnect to past established access point (BSSID) when the current configured SSID in ESP8266 could not be connected. By enabling this option, AutoConnect::begin() function will attempt to reconnect to a known access point using credentials stored in the EEPROM, even if the connection failed by current SSID.
+If the connection fails, starts the captive portal in SoftAP + STA mode.
+
When the autoReconnect option is enabled, an automatic connection will behave if the following conditions are satisfied.
+begin()
.Reset ESP8266 module automatically after WLAN disconnected.