ESP8266 Developer Zone The Official ESP8266 Forum 2015-05-06T09:52:31+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=317 2015-05-06T09:52:31+08:00 2015-05-06T09:52:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=317&p=1633#p1633 <![CDATA[Re: Cannot get connected devices to softAP]]>
wifi_softap_get_station_info can only be used when DHCP on ,right now.

BBS post topic wounld not be considered as bug bounty program, and I don't have the authority to decide to pay or not. :oops:

Join bug bounty program please refer to http://bbs.espressif.com/viewtopic.php?f=21&t=288

Sorry for the inconvenience.

Statistics: Posted by ESP_Faye — Wed May 06, 2015 9:52 am


]]>
2015-05-05T21:17:03+08:00 2015-05-05T21:17:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=317&p=1632#p1632 <![CDATA[Re: Cannot get connected devices to softAP]]> Statistics: Posted by anihilator — Tue May 05, 2015 9:17 pm


]]>
2015-04-27T16:26:51+08:00 2015-04-27T16:26:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=317&p=1542#p1542 <![CDATA[Re: Cannot get connected devices to softAP]]>
Thanks for replying (AFTER 1 MONTH). I sent bug report to this problem and I WANT that you will pay me money for bug reporting. Information about that this function only works in DHCP is nowhere written and I spent too much time with this problem and you answer me THIS?

Statistics: Posted by anihilator — Mon Apr 27, 2015 4:26 pm


]]>
2015-04-27T15:32:50+08:00 2015-04-27T15:32:50+08:00 https://bbs.espressif.com:443/viewtopic.php?t=317&p=1538#p1538 <![CDATA[Re: Cannot get connected devices to softAP]]>
wifi_softap_get_station_info can only be used when DHCP on ,right now.

Thanks for your reporting , we will think over your request.

Statistics: Posted by ESP_Faye — Mon Apr 27, 2015 3:32 pm


]]>
2015-04-22T16:07:19+08:00 2015-04-22T16:07:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=317&p=1472#p1472 <![CDATA[Re: Cannot get connected devices to softAP]]>
I tried your code and no result. But Im not using DHCP but static IP addresses on both sides. Can it make sense?

Statistics: Posted by anihilator — Wed Apr 22, 2015 4:07 pm


]]>
2015-04-21T19:25:59+08:00 2015-04-21T19:25:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=317&p=1448#p1448 <![CDATA[Re: Cannot get connected devices to softAP]]>
So sorry that we missed your message.

I tried your test code, and it's fine, it can get the station infor ..

Here is my test log

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


Test code is

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


]]>
2015-04-21T17:41:35+08:00 2015-04-21T17:41:35+08:00 https://bbs.espressif.com:443/viewtopic.php?t=317&p=1447#p1447 <![CDATA[Re: Cannot get connected devices to softAP]]> Statistics: Posted by anihilator — Tue Apr 21, 2015 5:41 pm


]]>
2015-03-31T18:32:45+08:00 2015-03-31T18:32:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=317&p=1190#p1190 <![CDATA[Cannot get connected devices to softAP]]>
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:

      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.

Statistics: Posted by anihilator — Tue Mar 31, 2015 6:32 pm


]]>