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.