wrong password connect AP not working.

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

wrong password connect AP not working.

Postby snahmad75 » Tue Dec 04, 2018 8:19 pm

Hi,

I am running ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_APSTA));

Not getting any event or SYSTEM_EVENT_STA_DISCONNECTED to determine if password is incorrect. The behavior was with few months old ESP IDF master brach was different. I was getting SYSTEM_EVENT_STA_DISCONNECTED if i specified wrong password

esp_wifi_set_config(WIFI_IF_STA, ...)
ESP_ERROR_CHECK(esp_wifi_connect());

See documentation.

https://docs.espressif.com/projects/esp ... /wifi.html

n step 4.2, the Wi-Fi connection may fail because, for example, the password is wrong, the AP is not found, etc. In a case like this, <SYSTEM_EVENT_STA_DISCONNECTED> will arise and the reason for such a failure will be provided. For handling events that disrupt Wi-Fi connection, please refer to phase 6.

Correct Password works.

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: wrong password connect AP not working.

Postby snahmad75 » Wed Dec 05, 2018 9:45 am

Can some one reply please.

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

Re: wrong password connect AP not working.

Postby brp80000 » Wed Dec 05, 2018 7:51 pm

Try another device
After updating IDF to 3-1-1 I have problems connecting WIFI devices with Android 6.0.1 when specified
wifi_config_t wifi_config.ap.authmode = WIFI_AUTH_WPA_WPA2_PSK (also set the SSID and PASS)
At the same time devices with Android 4.0 and IOS connect without problems. if I use WIFI_AUTH_WEP or WIFI_AUTH_OPEN then all devices connect successfully. Before the update WIFI_AUTH_WPA_WPA2_PSK worked

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: wrong password connect AP not working.

Postby snahmad75 » Tue Dec 11, 2018 11:13 am

Did anyone face this issue with latest master code.

I am using this wifi manager

https://github.com/tonyp7/esp32-wifi-ma ... _manager.c

Who is online

Users browsing this forum: No registered users and 151 guests