update wifi manager
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
|
||||
# WiFiManager
|
||||
## DEVELOPMENT Version
|
||||
|
||||
Espressif ESPx WiFi Connection manager with fallback web configuration portal
|
||||
|
||||
@@ -8,26 +7,25 @@ Espressif ESPx WiFi Connection manager with fallback web configuration portal
|
||||
|
||||

|
||||
|
||||

|
||||
[](https://github.com/tzapu/WiFiManager/actions/workflows/compile_library.yml)
|
||||
|
||||

|
||||
[](https://github.com/tzapu/WiFiManager/actions/workflows/compile_examples.yaml)
|
||||
|
||||
[](https://www.ardu-badge.com/WiFiManager)
|
||||
|
||||
[](https://platformio.org/lib/show/567/WiFiManager/installation)
|
||||
|
||||

|
||||
[](https://www.espressif.com/en/products/socs/esp8266)
|
||||
|
||||

|
||||

|
||||

|
||||
[](https://www.espressif.com/en/products/socs/esp32)
|
||||
[](https://www.espressif.com/en/products/socs/esp32-s2)
|
||||
[](https://www.espressif.com/en/products/socs/esp32-c3)
|
||||
|
||||
Member to Member Support / Chat
|
||||
|
||||
[](https://gitter.im/tablatronix/WiFiManager?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
[](https://discord.gg/dkjJbHwC)
|
||||
|
||||
[](https://discord.gg/nS5WGkaQH5)
|
||||
The configuration portal is of the captive variety, so on various devices it will present the configuration dialogue as soon as you connect to the created access point.
|
||||
|
||||
**This works with the ESP8266 Arduino platform**
|
||||
@@ -171,8 +169,8 @@ Also see [examples](https://github.com/tzapu/WiFiManager/tree/master/examples).
|
||||
|
||||
[PlatformIO](https://platformio.org/) is an emerging ecosystem for IoT development, and
|
||||
is an alternative to using the Arduino IDE. Install `WiFiManager`
|
||||
using the platformio [library manager](https://docs.platformio.org/en/latest/librarymanager/index.htm) in your editor,
|
||||
or using the [PlatformIO Core CLI](https://docs.platformio.org/en/latest/userguide/demo.html#library-manager),
|
||||
using the platformio [library manager](https://docs.platformio.org/en/latest/librarymanager/index.html#librarymanager) in your editor,
|
||||
or using the [PlatformIO Core CLI](https://docs.platformio.org/en/latest/core/index.html),
|
||||
or by adding it to your `platformio.ini` as shown below (recommended approach).
|
||||
|
||||
The simplest way is to open the `platformio.ini` file at the root of your project, and `WifiManager` to the common top-level env
|
||||
@@ -229,7 +227,7 @@ IF YOU NEED TO SAVE PARAMETERS EVEN ON WIFI FAIL OR EMPTY, you must set `setBrea
|
||||
void setBreakAfterConfig(boolean shouldBreak);
|
||||
```
|
||||
|
||||
See [AutoConnectWithFSParameters Example](https://github.com/tzapu/WiFiManager/tree/master/examples/AutoConnectWithFSParameters).
|
||||
See [AutoConnectWithFSParameters Example](https://github.com/tzapu/WiFiManager/tree/master/examples/Parameters/SPIFFS/AutoConnectWithFSParameters).
|
||||
```cpp
|
||||
wifiManager.setSaveConfigCallback(saveConfigCallback);
|
||||
```
|
||||
@@ -269,7 +267,7 @@ void loop() {
|
||||
}
|
||||
}
|
||||
```
|
||||
See example for a more complex version. [OnDemandConfigPortal](https://github.com/tzapu/WiFiManager/tree/master/examples/OnDemandConfigPortal)
|
||||
See example for a more complex version. [OnDemandConfigPortal](https://github.com/tzapu/WiFiManager/tree/master/examples/OnDemand/OnDemandConfigPortal)
|
||||
|
||||
#### Exiting from the Configuration Portal
|
||||
Normally, once entered, the configuration portal will continue to loop until WiFi credentials have been successfully entered or a timeout is reached.
|
||||
@@ -291,7 +289,7 @@ Usage scenario would be:
|
||||
|
||||
```
|
||||
- if connection to AP fails, configuration portal starts and you can set /change the values (or use on demand configuration portal)
|
||||
- once configuration is done and connection is established [save config callback]() is called
|
||||
- once configuration is done and connection is established save config callback() is called
|
||||
- once WiFiManager returns control to your application, read and save the new values using the `WiFiManagerParameter` object.
|
||||
```cpp
|
||||
mqtt_server = custom_mqtt_server.getValue();
|
||||
@@ -299,7 +297,7 @@ Usage scenario would be:
|
||||
This feature is a lot more involved than all the others, so here are some examples to fully show how it is done.
|
||||
You should also take a look at adding custom HTML to your form.
|
||||
|
||||
- Save and load custom parameters to file system in json form [AutoConnectWithFSParameters](https://github.com/tzapu/WiFiManager/tree/master/examples/AutoConnectWithFSParameters)
|
||||
- Save and load custom parameters to file system in json form [AutoConnectWithFSParameters](https://github.com/tzapu/WiFiManager/tree/master/examples/Parameters/SPIFFS/AutoConnectWithFSParameters)
|
||||
- *Save and load custom parameters to EEPROM* (not done yet)
|
||||
|
||||
#### Custom IP Configuration
|
||||
|
||||
Reference in New Issue
Block a user