What is wifi: ap_loss? Where is SYSTEM_EVENT_STA_DISCONNECTED?
Posted: Wed Mar 28, 2018 10:44 pm
Hi all,
Can someone tell me what "wifi: ap_loss" logged on the console means? I am getting this message once in a while when trying to connect to an AP that is not available, and when I do, I do not get a SYSTEM_EVENT_STA_DISCONNECTED event.
To expand: I'm trying to make sure I always maintain a WiFi connection. I have several networks configured and I loop through them, trying each one. Normally, when I call esp_wifi_connect() I soon get either SYSTEM_EVENT_STA_CONNECTED or SYSTEM_EVENT_STA_DISCONNECTED. But once in a while I see "wifi: ap_loss" and do not get SYSTEM_EVENT_STA_DISCONNECTED.
My ultimate goal is to know that if I call esp_wifi_connect() I get *something* to tell me that the connection has either succeeded or failed. Right now I cannot determine how to do that reliably. Is there a way?
Thanks,
Jason
Can someone tell me what "wifi: ap_loss" logged on the console means? I am getting this message once in a while when trying to connect to an AP that is not available, and when I do, I do not get a SYSTEM_EVENT_STA_DISCONNECTED event.
To expand: I'm trying to make sure I always maintain a WiFi connection. I have several networks configured and I loop through them, trying each one. Normally, when I call esp_wifi_connect() I soon get either SYSTEM_EVENT_STA_CONNECTED or SYSTEM_EVENT_STA_DISCONNECTED. But once in a while I see "wifi: ap_loss" and do not get SYSTEM_EVENT_STA_DISCONNECTED.
My ultimate goal is to know that if I call esp_wifi_connect() I get *something* to tell me that the connection has either succeeded or failed. Right now I cannot determine how to do that reliably. Is there a way?
Thanks,
Jason