Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By piersfinlayson
Phil colbert wrote:Yes I know, is the SDK released or open source, obviously a bug somewhere :(

Would like to have a look :)

No it's closed source. You'll need to raise this with espressif on their site:
User avatar
By dana
Phil colbert wrote:This code nearly works for me.....

If theres only one station connected then stat_info comes back as null...

If theres more than one it comes back with the info, any ideas ?

I suspect that "wifi_softap_get_station_info" is updated a short time after "wifi_softap_get_station_num".

So that if you call "wifi_softap_get_station_info" immediately after "wifi_softap_get_station_num", you don't get the correct results because whatever internal connection table hasn't been updated yet.

Perhaps "wifi_softap_get_station_num" is updated immediately after connection, but "wifi_softap_get_station_info" isn't updated until after the IP address, subnet mask, etc. is sent to the client a fraction of a second or so later.

I added a 1 second delay between the call to "wifi_softap_get_station_num" and "wifi_softap_get_station_info" and I get the correct results. I know it's kind of hackish, but maybe someone has a more elegant solution.
User avatar
By Phil colbert
#43507 Hi

I think your are quite correct, I have checked this and yes it happens later on.

Totally useless for me as I am dealing with streaming data coming and and need to handle that before the tiny buffer overflows..

Will raise it as a bug when I have time