You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
3. Install **ESPAsync_WiFiManager** library by using [Library Manager](https://docs.platformio.org/en/latest/librarymanager/). Search for ***ESPAsync_WiFiManager*** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
95
+
3. Install **ESPAsync_WiFiManager** library by using [Library Manager](https://docs.platformio.org/en/latest/librarymanager/). Search for **ESPAsync_WiFiManager** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
96
96
4. Use included [platformio.ini](platformio/platformio.ini) file from examples to ensure that all dependent libraries will installed automatically. Please visit documentation for the other options and examples at [Project Configuration File](https://docs.platformio.org/page/projectconf.html)
97
97
98
98
---
@@ -107,11 +107,11 @@ The best and easiest way is to use `Arduino Library Manager`. Search for `ESPAsy
then connect WebBrowser to configurable ConfigPortal IP address, default is 192.168.4.1
112
112
113
-
- Choose one of the access points scanned, enter password, click ***Save***.
114
-
- ESP will restart, then try to connect to the WiFi netwotk using STA-only mode, ***without running the ConfigPortal WebServer and WiFi AP***. See [Accessing manager after connection](https://github.com/khoih-prog/ESP_WiFiManager/issues/15).
113
+
- Choose one of the access points scanned, enter password, click **Save**.
114
+
- ESP will restart, then try to connect to the WiFi netwotk using STA-only mode, **without running the ConfigPortal WebServer and WiFi AP**. See [Accessing manager after connection](https://github.com/khoih-prog/ESP_WiFiManager/issues/15).
115
115
116
116
---
117
117
---
@@ -121,6 +121,7 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is 192.
121
121
#### 1. Using default for every configurable parameter
Once WiFi network information is saved in the `ESP32 / ESP8266`, it will try to autoconnect to WiFi every time it is started, without requiring any function calls in the sketch.
748
749
750
+
---
749
751
---
750
752
751
753
### Examples
@@ -773,6 +775,7 @@ Once WiFi network information is saved in the `ESP32 / ESP8266`, it will try to
773
775
---
774
776
775
777
## So, how it works?
778
+
776
779
In `ConfigPortal Mode`, it starts an access point called `ESP_XXXXXX`. Connect to it using the `configurable password` you can define in the code. For example, `your_password` (see examples):
777
780
778
781
```cpp
@@ -804,21 +807,22 @@ Select `Configuration` to enter this page where you can select an AP and specify
If you're already connected to a listed WiFi AP and don't want to change anything, just select ***Exit Portal*** from the `Main` page to reboot the board and connect to the previously-stored AP. The WiFi Credentials are still intact.
817
+
If you're already connected to a listed WiFi AP and don't want to change anything, just select **Exit Portal** from the `Main` page to reboot the board and connect to the previously-stored AP. The WiFi Credentials are still intact.
815
818
816
819
---
817
820
---
818
821
819
822
## Documentation
820
823
821
824
#### Password protect the configuration Access Point
825
+
822
826
You can password protect the ConfigPortal AP. Simply add an SSID as the first parameter and the password as a second parameter to `startConfigPortal`. See the above examples.
823
827
824
828
A short password seems to have unpredictable results so use one that's around 8 characters or more in length.
This gets called when custom parameters have been set **AND** a connection has been established. Use it to set a flag, so when all the configuration finishes, you can save the extra parameters somewhere.
835
840
836
841
See [Async_ConfigOnSwitchFS Example](examples/Async_ConfigOnSwitchFS).
@@ -853,6 +858,7 @@ void saveConfigCallback ()
853
858
```
854
859
855
860
#### ConfigPortal Timeout
861
+
856
862
If you need to set a timeout so the `ESP32 / ESP8266` doesn't hang waiting to be configured for ever.
857
863
858
864
```cpp
@@ -1664,7 +1670,7 @@ void wifi_manager()
1664
1670
// Extra parameters to be configured
1665
1671
// After connecting, parameter.getValue() will get you the configured value
1. This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr](examples/Async_ConfigOnDRD_FS_MQTT_Ptr) on ***ESP32 ESP32_DEV.***. Config Portal was requested by DRD to input and save MQTT Credentials. The boards then connected to Adafruit MQTT Server successfully.
2090
+
1. This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr](examples/Async_ConfigOnDRD_FS_MQTT_Ptr) on **ESP32 ESP32_DEV.**. Config Portal was requested by DRD to input and save MQTT Credentials. The boards then connected to Adafruit MQTT Server successfully.
2085
2091
2086
2092
```
2087
2093
Starting Async_ConfigOnDRD_FS_MQTT_Ptr using SPIFFS on ESP32_DEV
@@ -2148,7 +2154,7 @@ MQTT connection successful!
2148
2154
TWWWW WTWWWW WWTW
2149
2155
```
2150
2156
2151
-
2. This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr](examples/Async_ConfigOnDRD_FS_MQTT_Ptr) on ***ESP8266 NodeMCU 1.0.***. Config Portal was requested to input and save MQTT Credentials. The boards then connected to Adafruit MQTT Server successfully.
2157
+
2. This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr](examples/Async_ConfigOnDRD_FS_MQTT_Ptr) on **ESP8266 NodeMCU 1.0.**. Config Portal was requested to input and save MQTT Credentials. The boards then connected to Adafruit MQTT Server successfully.
2152
2158
2153
2159
```
2154
2160
Starting Async_ConfigOnDRD_FS_MQTT_Ptr using LittleFS on ESP8266_NODEMCU
@@ -2215,7 +2221,7 @@ TWWWW WTWWW
2215
2221
```
2216
2222
---
2217
2223
2218
-
3. This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/Async_ConfigOnDoubleReset) on ***ESP32 ESP32_DEV.***. Config Portal was requested by DRD to input and save Credentials. The boards then connected to WiFi using new Static IP successfully. WiFi AP **HueNet1** is then lost, and board **autoreconnects** itself to backup WiFi AP **HueNet2**.
2224
+
3. This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/Async_ConfigOnDoubleReset) on **ESP32 ESP32_DEV.**. Config Portal was requested by DRD to input and save Credentials. The boards then connected to WiFi using new Static IP successfully. WiFi AP **HueNet1** is then lost, and board **autoreconnects** itself to backup WiFi AP **HueNet2**.
2219
2225
2220
2226
```cpp
2221
2227
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using SPIFFS on ESP32_DEV
4. This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/Async_ConfigOnDoubleReset) on ***ESP8266_NODEMCU.***. Config Portal was requested by DRD to input and save Credentials. The boards then connected to WiFi using new Static IP successfully. WiFi AP **HueNet1** is then lost, and board **autoreconnects** itself to backup WiFi AP **HueNet2**.
2279
+
4. This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/Async_ConfigOnDoubleReset) on **ESP8266_NODEMCU.**. Config Portal was requested by DRD to input and save Credentials. The boards then connected to WiFi using new Static IP successfully. WiFi AP **HueNet1** is then lost, and board **autoreconnects** itself to backup WiFi AP **HueNet2**.
2274
2280
2275
2281
```cpp
2276
2282
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP8266_NODEMCU
@@ -2326,7 +2332,7 @@ HHHHHHHHHH HHHHHHHHHH HHH
2326
2332
2327
2333
---
2328
2334
2329
-
5. This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/Async_ESP_FSWebServer_DRD) on ***ESP8266_NODEMCU.***. Config Portal was requested by DRD to input and save Credentials. The boards then connected to WiFi using new Static IP successfully.
2335
+
5. This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/Async_ESP_FSWebServer_DRD) on **ESP8266_NODEMCU.**. Config Portal was requested by DRD to input and save Credentials. The boards then connected to WiFi using new Static IP successfully.
2330
2336
2331
2337
```cpp
2332
2338
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU
@@ -2402,6 +2408,7 @@ By going to http://192.168.2.186/edit or http://async-esp8266fs.local/edit, you
2402
2408
---
2403
2409
2404
2410
### Debug
2411
+
2405
2412
Debug is enabled by default on Serial. To disable, add before `startConfigPortal()`
2406
2413
2407
2414
```cpp
@@ -2495,7 +2502,7 @@ If you want to contribute to this project:
2495
2502
2496
2503
### License and credits ###
2497
2504
2498
-
- The library is licensed under [MIT](https://github.com/khoih-prog/WebSockets2_Generic/blob/master/LICENSE)
2505
+
- The library is licensed under [MIT](https://github.com/khoih-prog/ESPAsync_WiFiManager/blob/master/LICENSE)
0 commit comments