Wifi Configuration (SSID & Password) Over HTTP Web server

kjames
Posts: 16
Joined: Mon Jul 01, 2019 3:27 pm

Wifi Configuration (SSID & Password) Over HTTP Web server

Postby kjames » Wed Jul 24, 2019 10:47 am

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.

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

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

Postby mikemoy » Wed Jul 24, 2019 1:55 pm

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

kjames
Posts: 16
Joined: Mon Jul 01, 2019 3:27 pm

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

Postby kjames » Thu Jul 25, 2019 11:54 am

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.

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

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

Postby mikemoy » Thu Jul 25, 2019 12:12 pm

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.

Ankit24011995
Posts: 2
Joined: Tue Aug 10, 2021 1:42 pm

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

Postby Ankit24011995 » Tue Aug 10, 2021 2:01 pm

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.

ESP_Mahavir
Posts: 190
Joined: Wed Jan 24, 2018 6:51 am

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

Postby ESP_Mahavir » Wed Aug 11, 2021 10:14 am

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.

Who is online

Users browsing this forum: Bing [Bot] and 120 guests