I am using ESP_IDF v4.1.
I try to get mac and IP of station, connected to AP.
The aim is to serve reconnection, when STA is accidentally disconnects (power off) without posting some disconnect action.
in that case we get any ... disconnect.. events in AP event loop.
I found in some posts, that the only way is to use:
esp_wifi_ap_get_sta_list(&wifi_sta_list);
tcpip_adapter_get_sta_list(&wifi_sta_list, &tcp_sta_list);
( or esp_netif_get_sta_list(&wifi_sta_list, &netif_sta_list); )
But as I see, sta_list gotten from esp_wifi_ap_get_sta_list(&wifi_sta_list) isn't updated when station leave the AP net (is turned-off).
So that is there is no methods to get a newly connected station's IP .?.?
That is very strange situation.
My task - to handle reconnection of some particular station (multiple of STAs are connected to AP) is very common, and there are no appropriate instruments in IDF ?????
May someone knows the other way?
any help...
thanks
esp_wifi_ap_get_sta_list() problem
Re: esp_wifi_ap_get_sta_list() problem
Hello,
I have a stranger problem. After the call to esp_wifi_ap_get_sta_list, the wifi_sta_list_t.num is always zero ... but there are stations that are connected.
Any ideas are appeciated.
I have a stranger problem. After the call to esp_wifi_ap_get_sta_list, the wifi_sta_list_t.num is always zero ... but there are stations that are connected.
Any ideas are appeciated.
Who is online
Users browsing this forum: No registered users and 82 guests