Page 1 of 1

Try wifi ssid and password before connect

Posted: Wed May 04, 2022 3:18 pm
by mrdebug
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.

Re: Try wifi ssid and password before connect

Posted: Wed May 04, 2022 9:11 pm
by WiFive
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.

Re: Try wifi ssid and password before connect

Posted: Thu May 05, 2022 1:16 pm
by a2800276
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.