I'm trying to determine whether the client-entered WiFi password is correct or not. What I did was listen for the SYSTEM_EVENT_STA_DISCONNECTED event to get the reason code.
I get either WIFI_REASON_AUTH_FAIL or WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT when I enter an invalid password (e.g. too short, or password doesn't match the AP password, etc). I'm not sure if this behavior is just my router or if there are other reasons I should be checking as well
Determining if the wifi password is incorrect
Re: Determining if the wifi password is incorrect
I figured I would test your findings and I get exactly the same as you do. When I try to connect to my access point and provide an invalid password, sometimes I get reason code 15 (WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT) and sometimes I get 202 (WIFI_REASON_AUTH_FAIL).
My router is a Netgear WNDR3400v3.
My router is a Netgear WNDR3400v3.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: Determining if the wifi password is incorrect
Under the current build I am for some reason getting WIFI_REASON_AUTH_EXPIRE for incorrect passwords. This is for a NetGear WNDR3700. I'm seeing WIFI_REASON_NO_AP_FOUND if the SSID isn't present, which is OK, but I never see WIFI_REASON_AUTH_FAIL.
Re: Determining if the wifi password is incorrect
Do we know something about this problem?
I only in some cases got WIFI_REASON_AUTH_EXPIRE, mostly my reason code is 0 with the wrong password.
Thanks
I only in some cases got WIFI_REASON_AUTH_EXPIRE, mostly my reason code is 0 with the wrong password.
Thanks
Re: Determining if the wifi password is incorrect
Hi all,
I have similar issue. When I try bas password for WiFi AP I get only reason 15 and 201, I have never get 202. Why?
Please, could you help me?
Best Regards,
Vilem
I have similar issue. When I try bas password for WiFi AP I get only reason 15 and 201, I have never get 202. Why?
Please, could you help me?
Best Regards,
Vilem
Re: Determining if the wifi password is incorrect
I do not get any events at all for wrong password for the last few months of the master branch.
Who is online
Users browsing this forum: Marcosss and 97 guests