wrong password connect AP not working.
Posted: 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.
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.