Page 1 of 1

Wifi Configuration (SSID & Password) Over HTTP Web server

Posted: Wed Jul 24, 2019 10:47 am
by kjames
Hello, I am new to ESP32 and I am working on a project that requires setting up an HTTP server on the ESP32 working as a soft AP (using ESP IDF written in C only) - the main question I am running into is, how to configure the Access Point via the web server?

This project requires the ability to change the SSID and password of the Access Point after accessing the web server/access point with an initial SSID and password.

I have seen many examples of implementing a simple lightweight web server using the ESP as an access point, but I am not experienced in this area to build in the functionality of changing the SSID and PWD over the web page and I am hoping that there may be some existing examples that someone could share that may point me in the right direction and possibly something that I could build from.

Any help is very much appreciated.

Re: Wifi Configuration (SSID & Password) Over HTTP Web server

Posted: Wed Jul 24, 2019 1:55 pm
by mikemoy
The smart_config example should get you started along that path, as it does what your asking.
https://github.com/espressif/esp-idf/tr ... art_config

https://www.espressif.com/sites/default ... ide_en.pdf

Re: Wifi Configuration (SSID & Password) Over HTTP Web server

Posted: Thu Jul 25, 2019 11:54 am
by kjames
thanks very much for the suggestion... also, I just found this example, which is also good:

https://github.com/tonyp7/esp32-wifi-manager

The only thing missing is the functionality of changing the ESP's access point credentials from the web server.

Re: Wifi Configuration (SSID & Password) Over HTTP Web server

Posted: Thu Jul 25, 2019 12:12 pm
by mikemoy
If i am not mistaken thats what the smart_config example does.
It starts up as a AP, you connect to it enter in your wifi info, it saves them and reboots connecting to you router.

Re: Wifi Configuration (SSID & Password) Over HTTP Web server

Posted: Tue Aug 10, 2021 2:01 pm
by Ankit24011995
Hi james, thanks for this link - https://github.com/tonyp7/esp32-wifi-ma ... fi-manager
but i am having issue in this.
by using example code i am able to set wifi and password through web browser once.
but after first time i am not able to change wifi and password by same process on the same esp32.
its showing me this error - "abort() was called at PC 0x40086d23 on core 0"
and then esp is Rebooting.

Re: Wifi Configuration (SSID & Password) Over HTTP Web server

Posted: Wed Aug 11, 2021 10:14 am
by ESP_Mahavir
Hello @kjames

Additionally, you might also want to evaluate "unified" provisioning framework designed for this, few pointers below:

https://docs.espressif.com/projects/esp ... oning.html
https://github.com/espressif/esp-idf/tr ... ovisioning

Thanks.