Statistics: Posted by ESP_Faye — Wed May 06, 2015 9:52 am
Statistics: Posted by anihilator — Mon Apr 27, 2015 4:26 pm
Statistics: Posted by ESP_Faye — Mon Apr 27, 2015 3:32 pm
Statistics: Posted by anihilator — Wed Apr 22, 2015 4:07 pm
Code:
station: c8:3a:35:cc:14:94 join, AID = 1
bssid : c8:3a:35:cc:14:94, ip : 192.168.4.2
count 1
Code:
void check_station_info(void *arg)
{
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);
}
void user_init(void)
{
os_printf("Hello from ESP8266\n");
wifi_set_opmode(STATIONAP_MODE);
os_timer_disarm(&client_timer);
os_timer_setfn(&client_timer, (os_timer_func_t *)check_station_info, 0);
os_timer_arm(&client_timer, 5000, 1);
}
Statistics: Posted by ESP_Faye — Tue Apr 21, 2015 7:25 pm
Code:
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);
Statistics: Posted by anihilator — Tue Mar 31, 2015 6:32 pm