It has already been asked how many clients can connect to an ESP32 AP, but the answer is far from clear; the best one is from a year and half ago (ESP32 AP max connections: 4 or 10?) :
The answer is as clear as any other EspressIf configuration data, it is 4 or maybe 5, or 8, or 12, 16 or even 20 (the same as a ESP8266!)
As I'm trying to move a project from the ESP8266 because it does not have enough AP connections, two questions can be asked :
what is the maximum number of AP connections supported by the 4.0 ESP-IDF framework ?
can it be increased in any way ?
Thank you.
start_wifi_apand see if that works. It may not though, since you may run out of memory – Majenko Mar 02 '20 at 10:12I will get back with the results.
What I've been able to test so far is that changing the
#define ESP_WIFI_MAX_CONN_NUM 10to
– stefanu Mar 02 '20 at 19:37#define ESP_WIFI_MAX_CONN_NUM 16then rebuilding everything, does change thesizeof(wifi_sta_list_t), so ... maybe... just maybe ... there's a chance.ESP_WIFI_MAX_CONN_NUMto a greater value produces strange behavior (for instanceesp_wifi_ap_get_sta_listfails miserably). I will get back once I have more modules to play with. – stefanu Mar 07 '20 at 04:22