Page 1 of 1

esp32 wifi connection status

Posted: Tue Nov 07, 2017 8:54 am
by amazone
hi there,

How do I check the connection status after entering wrong SSID and password when connecting to WiFi AP?

esp_wifi_connect () Should I check with the return value?

The return value of esp_wifi_connect () is always ESP_OK.

Can anyone help me?

Re: esp32 wifi connection status

Posted: Tue Nov 14, 2017 8:41 am
by iot-bits.com
Nah, the return value will not tell you the status.
You can use the Wi-Fi event callback and detect events there for taking suitable actions. You may want to check the Wi-Fi event handler and its documentation.