Wifi Manager with web pages to configure

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Wifi Manager with web pages to configure

Postby snahmad75 » Tue Jun 05, 2018 9:48 am

Hi,



Have some one implement WIFI config web shows all WIFI Access point with scan button and connect to them using JSON commands.
Similar to this example : https://github.com/zhouhan0126/WIFIMANAGER-ESP32

Above example does not work on ESP32 platform. It is for arduino.


Thanks,
Naeem

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: Wifi Manager with web pages to configure

Postby snahmad75 » Tue Jun 05, 2018 4:23 pm

My C++ program scan wifi to get all available access point list while Http server is running in AP mode with IP address = 192.168.4.1. It lost http reply because It starts firmware WIFI in STA mode. WIFI connection is lost.

If Http Server already running in STA mode then it is ok. I do get reply. Any idea how we can configure WIFI connection for user via web UI. we need to starts with firmware WIFI running AP mode initially. user can configure via JSON commands to scan all WFI connections. he select WIFI. give user and password to connect. It gets saved in firmware for next time onward.

Any idea how we can perform wifi scanning without http reply failure.

One way is on firmware startup I scanned all WIFI connection and keep save list, but I cannot give user real-time WIFI AP list.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Wifi Manager with web pages to configure

Postby WiFive » Tue Jun 05, 2018 6:07 pm


snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: Wifi Manager with web pages to configure

Postby snahmad75 » Wed Jun 06, 2018 9:46 am

I managed to integrate your wifi_manager C functions into my project and use it from from my web angular application.
It is working. Many thanks for sharing your code.

I notice when I run your example it shows duplicate WiFI access points names in the list.
It shows same WiFI AP 2 or 3 times in the list.
Can you check at your end?

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: Wifi Manager with web pages to configure

Postby snahmad75 » Mon Jun 11, 2018 7:37 am

Did you managed to check at Wifi manager shows duplicate AP names?

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Corand and 85 guests