Try wifi ssid and password before connect

mrdebug
Posts: 43
Joined: Sat Jul 27, 2019 8:26 am

Try wifi ssid and password before connect

Postby mrdebug » Wed May 04, 2022 3:18 pm

In a scenario where my esp32 is an access point, it is possible to verify the password of an ssid in range of my access point? The idea is, before to switch off the esp32 access point and to connect to an already existing ssid, to verify if the password is ok.

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

Re: Try wifi ssid and password before connect

Postby WiFive » Wed May 04, 2022 9:11 pm

Most likely no because you would have to either perform a handshake or observe a handshake. What would be the advantage over apsta mode? You would still have to switch channels.

a2800276
Posts: 78
Joined: Sat Jan 23, 2016 1:59 pm

Re: Try wifi ssid and password before connect

Postby a2800276 » Thu May 05, 2022 1:16 pm

You would try to connect in APSTA mode and if you see a successful WIFI_EVENT_STA_CONNECTED event you can turn off the AP.

Who is online

Users browsing this forum: Bing [Bot], Teh2024 and 110 guests