From 8aaac858940c827849aa85d17e944bd004529116 Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Sun, 6 May 2018 21:17:24 +0900 Subject: [PATCH] Supports autoReconnect Fixed lint error --- docs/changelog/index.html | 26 ++++++++------------------ docs/search/search_index.json | 9 ++------- src/AutoConnect.cpp | 4 ++-- 3 files changed, 12 insertions(+), 27 deletions(-) diff --git a/docs/changelog/index.html b/docs/changelog/index.html index dc36518..6a12ab7 100644 --- a/docs/changelog/index.html +++ b/docs/changelog/index.html @@ -413,25 +413,20 @@ - -
  • + +
  • [0.9.2] March 19, 2018.
  • - -
  • + +
  • [0.9.1] March 13, 2018.
  • - - - - - @@ -487,25 +482,20 @@ - -
  • + +
  • [0.9.2] March 19, 2018.
  • - -
  • + +
  • [0.9.1] March 13, 2018.
  • - - - - - diff --git a/docs/search/search_index.json b/docs/search/search_index.json index fa8a45d..a655b72 100644 --- a/docs/search/search_index.json +++ b/docs/search/search_index.json @@ -647,17 +647,12 @@ }, { "location": "/changelog/index.html", - "text": "[0.9.4] May 5, 2018.\n\u00b6\n\n\n\n\nSupports 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.\n\n\n\n\n[0.9.3] March 23, 2018.\n\u00b6\n\n\n\n\nSupports a static IP address assignment.\n\n\n\n\n[0.9.2] March 19, 2018.\n\u00b6\n\n\n\n\nImprovement of string literal declaration with the examples, no library change.\n\n\n\n\n[0.9.1] March 13, 2018.\n\u00b6\n\n\n\n\nA release of the stable.", + "text": "[0.9.4] May 5, 2018.\n\u00b6\n\n\n\n\nAutomatically focus passphrase after selecting SSID with Configure New AP.\n\n\nSupports 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.\n\n\n\n\n[0.9.3] March 23, 2018.\n\u00b6\n\n\n\n\nSupports a static IP address assignment.\n\n\n\n\n[0.9.2] March 19, 2018.\n\u00b6\n\n\n\n\nImprovement of string literal declaration with the examples, no library change.\n\n\n\n\n[0.9.1] March 13, 2018.\n\u00b6\n\n\n\n\nA release of the stable.", "title": "Change log" }, { "location": "/changelog/index.html#094-may-5-2018", - "text": "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.", - "title": "[0.9.4] May 5, 2018." - }, - { - "location": "/changelog/index.html#094-april-22-2018", - "text": "Automatically focus passphrase after selecting SSID with Configure New AP.", + "text": "Automatically focus passphrase after selecting SSID with Configure New AP. 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.", "title": "[0.9.4] May 5, 2018." }, { diff --git a/src/AutoConnect.cpp b/src/AutoConnect.cpp index cb3adce..d0a226b 100644 --- a/src/AutoConnect.cpp +++ b/src/AutoConnect.cpp @@ -141,8 +141,8 @@ bool AutoConnect::begin(const char* ssid, const char* passphrase, unsigned long AC_DBG("SoftAP %s/%s CH(%d) H(%d) IP:%s\n", _apConfig.apid.c_str(), _apConfig.psk.c_str(), _apConfig.channel, _apConfig.hidden, WiFi.softAPIP().toString().c_str()); // Fork to the exit routine that starts captive portal. - cs = _onDetectExit ? _onDetectExit(_currentHostIP) : true; - + cs = _onDetectExit ? _onDetectExit(_currentHostIP) : true; + // Start captive portal without cancellation by DetectExit. if (cs) { // Prepare for redirecting captive portal detection.