I just only need to get how many devices is connected to ESP8266 in softAP mode. I tried to use wifi_softap_get_station_info() but it tells me no devices connected (devices are connected and confirmed by "station: xx:xx:xx:xx:xx:xx join, AID = 1").
I'm using this code:
Code: Select all
int count = 0;
struct station_info * station = wifi_softap_get_station_info();
while(station)
{
os_printf("bssid : "MACSTR", ip : "IPSTR"\n", MAC2STR(station->bssid), IP2STR(&station->ip));
count++;
station = STAILQ_NEXT(station, next);
}
wifi_softap_free_station_info();
os_printf("count %d\r\n", count);
Thx for possible help.