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

Moderator: igrr

User avatar
By Cicero
#50023 There is, but in the Arduino lib it is hardcoded as max_connections = 4 (this is default on the esp anyway)
See line 111 of https://github.com/esp8266/Arduino/blob ... WiFiAP.cpp

You'll either have to change the lib file, or easier, just write your own set ap config function, along the lines of:
Code: Select allstruct softap_config conf;
wifi_softap_get_config(&conf);
conf.max_connection = 1; 
ETS_UART_INTR_DISABLE();
ret = wifi_softap_set_config(&conf);
ETS_UART_INTR_ENABLE();   

So read the current config set through the usual method, and merely change the max_connection parameter.