Problem with distinguishing wrong WIFI AP password

alewczuk
Posts: 1
Joined: Fri Jan 13, 2023 8:47 am

Problem with distinguishing wrong WIFI AP password

Postby alewczuk » Fri Jan 13, 2023 9:21 am

Hi

I have an application, where there is a crucial to find out that the user put the wrong password to the selected AP.
API reference https://docs.espressif.com/projects/esp ... g-password says, that in case of wrong password, there would be a disconnection reason WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT (or 2 other codes).

I had met a situation, where connection to the AP failed with WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT, but the password was correct (looks like other issue caused such a reason code).

No separated reason value for wrong password and the current solution can make a false-positive wrong password indication.

Is there any possibility to be a 100% that the password not correct?
Why the wrong password is not indicated by a WIFI_REASON_AUTH_FAIL (it sounds more reasonable)?

Best Regards,
Adrian

Who is online

Users browsing this forum: MicroController and 158 guests