esp32 wifi connection status

amazone
Posts: 8
Joined: Mon May 29, 2017 2:47 am

esp32 wifi connection status

Postby amazone » Tue Nov 07, 2017 8:54 am

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?

User avatar
iot-bits.com
Posts: 25
Joined: Wed Dec 21, 2016 6:14 am
Location: India
Contact:

Re: esp32 wifi connection status

Postby iot-bits.com » Tue Nov 14, 2017 8:41 am

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.
- Pratik
:geek: Just another hobbyist and consultant

Who is online

Users browsing this forum: No registered users and 100 guests