Hi,
Making real progress and I’m now needing to setup wifi manager. Is there a sample/example to show the setup of WifiManager for ESP32 (AI-Thinker board)?
Thanks again
Pat
Hi.
Setting up Wi-Fi Manager for the AI-Thinker is the same as setting up Wi-Fi Manager for any other ESP32 board.
At the moment, we don’t have any tutorial about WiFi Manager with the ESP32.
I think this is the most used library for that, but it hasn’t been updated for some time: https://github.com/zhouhan0126/WIFIMANAGER-ESP32
Regards,
Sara
Thanks Sara,
Tried the library you mentioned but, as you say, its pretty old and couldn’t get it to work.
However what I’m thinking is to store the SSID/password in nvs or spiffs and have the code check if exists and try to connect. if no connection stored or it fails then we launch in soft mode. I’ll have a http endpoint (something like http://[ip_address]/manager to launch a page to post SSID/password back to ESP32 storage.
Hope this makes sense and if someone else has done this maybe point me in the right direction?
Regards
Pat
Hi Pat.
We have a topic about storing the SSID and password on SPIFFS.
One of our readers shared his example: https://rntlab.com/question/read-spiffs-file-line-by-line/
Scroll all the way down until the end of the discussion.
Once you can do this, try to connect to the network saved in spiffs. If it fails after an X number of attempts, start in access point mode.
I hope this helps.
I’m sorry, but at the moment, we don’t have that example you’re looking for.
If you have some issues throughout the process, you can ask.
Regards,
Sara