Search found 5 matches

by sharkx
Thu Jul 16, 2020 5:01 am
Forum: ESP-IDF
Topic: Random ERRNO 9 (EBADF) on recv() or send()
Replies: 5
Views: 5115

Re: Random ERRNO 9 (EBADF) on recv() or send()

Well... That's part of the problem; there none that I could find. Stripping all error handling and other minor stuff, here's how it's done (in a simplified, c-like language) function serverTask() { server_socket = socket(); bind(server_socket); listen(server_socket); while (1) { if (select(server_so...
by sharkx
Tue Jul 14, 2020 9:03 am
Forum: ESP-IDF
Topic: Random ERRNO 9 (EBADF) on recv() or send()
Replies: 5
Views: 5115

Random ERRNO 9 (EBADF) on recv() or send()

The context Several nodes running as APs connecting to each other in a tree-like network; all nodes run the same code. There's a pretty basic TCP server that listens for small packets of data; the server is running a 'classic' soccket() -> bind() -> listen() -> select() - accept() -> recv() scenari...
by sharkx
Tue May 19, 2020 3:51 pm
Forum: ESP-IDF
Topic: How to shorten socket connect time
Replies: 0
Views: 1665

How to shorten socket connect time

Hello all,
My ESPs are always connecting with each other so I'm looking for ways to shorten the socket connect timeout, but can't seem to find a way ...
Any help is appreciated.
Thanks in advance.
by sharkx
Fri Mar 06, 2020 5:40 am
Forum: ESP-IDF
Topic: access to libnet80211 source code
Replies: 0
Views: 3318

access to libnet80211 source code

Hello, I need to be able to connect more than 10 stations to an ESP32 in SoftAP mode. The problem is that changing the #define ESP_WIFI_MAX_CONN_NUM (10) to anything else leads to not being able to get data by calling esp_wifi_ap_get_sta_list. So I guess there's something that should be changed in t...
by sharkx
Thu Mar 05, 2020 3:55 pm
Forum: General Discussion
Topic: esp_wifi_ap_get_sta_list() problem
Replies: 1
Views: 4666

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.