ESP_WiFiManager for ESP32 and ESP8266

khoih-prog
Posts: 15
Joined: Sat Feb 22, 2020 8:16 pm

ESP_WiFiManager for ESP32 and ESP8266

Postby khoih-prog » Sat Feb 22, 2020 8:27 pm

https://github.com/khoih-prog/ESP_WiFiManager

You can install directly from Arduino Library Manager

https://www.ardu-badge.com/ESP_WiFiManager

This is an ESP32 / ESP8266 WiFi Connection Manager with fallback web configuration portal. Use this library for configuring ESP32, ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName. With examples supporting ArduinoJson 6.0.0+ as well as 5.13.5- .

So, how it works?
In Configuration Portal 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):

Code: Select all

// SSID and PW for Config Portal
String ssid = "ESP_" + String(ESP_getChipId(), HEX);
const char* password = "your_password";
After you connected, please, go to http://192.168.4.1, you'll see this Main page:

Image

Select Information to enter the Info page where the board info will be shown (long page)

Image

or short page (default)

Image

Select Configuration to enter this page where you can select an AP and specify its WiFi Credentials

Image

Enter your credentials, then click Save. The WiFi Credentials will be saved and the board reboots to connect to the selected WiFi AP.

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.

Releases 1.0.6

New in v1.0.6

- Add function getConfigPortalPW()
- Add 4 new complicated examples compatible with ArduinoJson 6.0.0+ :AutoConnect(https://github.com/khoih-prog/ESP_WiFiM ... utoConnect), AutoConnectWithFeedback(https://github.com/khoih-prog/ESP_WiFiM ... thFeedback), AutoConnectWithFeedbackLED(https://github.com/khoih-prog/ESP_WiFiM ... eedbackLED) and AutoConnectWithFSParameters(https://github.com/khoih-prog/ESP_WiFiM ... Parameters)

Releases 1.0.6-beta

New in v1.0.6-beta

- Add NTP data
- Add support to ArduinoJson 6.0.0+ as well as 5.13.5- to examples

Releases 1.0.5

New in v1.0.5

- Add option to specify static DNS servers, besides static IP, Gateway and Subnet Mask
- Modify and add examples. Enhance README.md

Releases 1.0.4

New in v1.0.4

- Add ESP_WiFiManager setHostname feature
- Modify and add examples. Enhance README.md

Releases 1.0.3

New in v1.0.3

- Add option not displaying AvailablePages in Info page.
- Delete unnecessary files
- Modify examples, Images and enhance README.md

Releases 1.0.2

- Forked, modified, bug-fixed and improved from these versions of WiFiManager.

See Tzapu's version(https://github.com/tzapu/WiFiManager) for previous release information.
See KenTaylor's version(https://github.com/kentaylor/WiFiManager) for previous release information.

New in v1.0.2

- Fix bug that keeps ConfigPortal in endless loop if Portal/Router SSID or Password is NULL.
- Add example ConfigPortalParamsOnSwitch to enable ConfigPortal credentials to be reconfigurable using ConfigPortal.

khoih-prog
Posts: 15
Joined: Sat Feb 22, 2020 8:16 pm

Re: ESP_WiFiManager for ESP32 and ESP8266

Postby khoih-prog » Thu Jul 30, 2020 11:52 pm

Releases 1.0.9

1. Fix ESP32 STAstaticIP bug.
2. Enable changing from DHCP <-> static IP using Config Portal.
3. Enable NTP configuration from sketch (USE_ESP_WIFIMANAGER_NTP, USE_CLOUDFLARE_NTP). See Issue #21: CloudFlare link in the default portal.
4. Add, enhance examples (fix MDNS for ESP32 examples, add DRD feature).

Releases 1.0.8
1. Fix setSTAStaticIPConfig issue. See Static Station IP doesn't work
2. Add LittleFS support for ESP8266 core 2.7.1+ in examples to replace deprecated SPIFFS.
3. Restructure code.

Releases 1.0.7

1. Use `just-in-time` scanWiFiNetworks() to reduce connection time necessary for battery-operated DeepSleep application. Thanks to CrispinP for identifying, requesting and testing. See Starting WiFIManger is very slow (2000ms)
2. Fix bug relating SPIFFS in examples :
- ConfigOnSwitchFS
- ConfigPortalParamsOnSwitch (now support ArduinoJson 6.0.0+ as well as 5.13.5-)
- AutoConnectWithFSParameters
See Having issue to read the SPIFF file, Thanks to OttoKlaasen to report.
3. Fix README. See Accessing manager after connection

Who is online

Users browsing this forum: No registered users and 1 guest