-
Notifications
You must be signed in to change notification settings - Fork 543
Not getting STATION_WRONG_PASSWORD any more #218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, |
I suspect that, too. But disabling reconnect only for this is a bit... crude. I want it to reconnect in all situations and I don't want to introduce new points of failure. I've tried calling wifi_station_get_connect_status() in the event handler as well. Same result. In the event handler I can get event_info.disconnected.reason (== REASON_AUTH_EXPIRE) but that is not the same. Unfortunately there is no event_info.disconnected.status... that would be great. |
If I set I know that it worked before and I got STATION_WRONG_PASSWORD in earlier versions of the SDK... even with automatic reconnect. |
Could you query which version it works well? |
I just tried to compile my project against the current 2.2. Same behavior. Unfortunately I cannot compile against the 2.1. Too much has changed. |
By the way, we do not get STATION_NO_AP_FOUND returned, either. Yes, wifi_station_set_reconnect_policy is set to false. |
I''m also having this exact issue getting only STATION_CONNECTING when attempting to poll wifi status with wifi_station_get_connect_status() inside a timer callback. I'm trying to setup a polling timer with a callback to check the status of my station connection and handle connection issues myself (with auto reconnect disabled). I am testing with wrong ssid/pwd and found no matter what I get the same value returned(STATION_CONNECTING). According to api docs, I set wifi_station_set_reconnect_policy(false) after wifi is in station mode I still get STATION_CONNECTING no matter how much time I add between os_timer polls. EDIT: I would like my device to switch to ap mode with an http server for a user to provide wifi credentials if a connection issue happens for a set period of time. This depends on the wifi_station_get_connect_status api call to function as the documentation describes, and return either STATION_WRONG_PASSWORD, STATION_CONNECT_FAIL, STATION_GOT_IP, etc, so I can handle programmatically instead of using auto reconnect. |
It is really sad that the SDK does not behave like the documentation suggests. This makes WiFi connection error handling quite shaky... I'd love to see a fix here. I know that only "critical" bugs are to be corrected, but in my opinion WiFi connection problems are indeed critical ones in a WiFi SOC SDK... |
I believe this issue definitely falls under the category of a critical bug for 1 main reason, Fixing this issue so that the api call (wifi_station_get_connect_status in station mode) acts as the documentation describes is far from a new feature, it is nothing less than a critical bug, as it is currently breaking the core functionality of the esp8266 (wifi). |
still with latest master branch? |
Computer says yes. Problem still exists... |
fix(pp): Wi-Fi tx hangs when Q2_RST_INT and Q0_TX_COMPLETE come at the same time See merge request sdk/ESP8266_NONOS_SDK!270
Any news on this issue? |
Nothing? I noticed that when I change the WiFi, the event handler gets called with EVENT_STAMODE_DISCONNECTED and the NEW WiFi SSID is in event_info.disconnected.ssid. |
I've tried by deliberately setting a wrong station password. The module tries to reconnect over and over again and wifi_station_get_connect_status() always reports back STATION_CONNECTING.
That is correct, however, in my opinion it makes more sense to return STATION_WRONG_PASSWORD.
Otherwise the user does not know why there is no connection established... And not using it would render the struct member STATION_WRONG_PASSWORD useless anyway.
The text was updated successfully, but these errors were encountered: