I am using an ESP32 as my master and 10 ESP8266-07s are connected to the master that is in AP mode.

But I need at least 12 clients. Please help me to increase the number of clients the ESP32 can handle in AP mode.

I have read this article but it did not help me ESP32 AP max connections: 4 or 10?

| improve this question | | | | |
  • have you considered ESP-NOW? it can handle more clients and traffic since it has lower overhead than wifi – dandavis Aug 29 '18 at 15:41
  • esp-now is not secure to me.i think the better way is mesh.but its too force for me right now.so i add aother esp32 in my master and then connect both esp32 by serial to together.and then any of them can conect to 10 client and 1 on the esp32 control and calculate every thing – ehsan haji Sep 3 '18 at 6:32

The sdkconfig file in ESP32 arduino core package 1.0.0 has this line:


This parameter is used when LWIP library is compiled. The ESP32 core package has LWIP library already compiled. The Arduino build doesn't compile it, so a change to sdkconfig file will not be used for your sketch. For esp8266 there is an option in Tools menu to compile LWIP from source, but for ESP32 there is not.

| improve this answer | | | | |
  • this code is in the 254 i think,i changed it also.no result!!! – ehsan haji Sep 1 '18 at 14:14
  • I enhanced the answer – Juraj Sep 1 '18 at 15:16

The SDK API documentation from Espressif directly notes:

uint8_t max_connection

Max number of stations allowed to connect in, default 4, max 4


However, another area of the API documentation (The API Guide) notes:


Currently, ESP32 Wi-Fi supports up to 10 Wi-Fi connections. If max_connection > 10, soft-AP defaults the value to 10.

| improve this answer | | | | |
  • strange. I do not believe this. it must be a copy-paste error (from esp8266 doc?). it has two processors – Juraj Aug 29 '18 at 17:35
  • Perhaps so. I found another place in the API Guide which implies that 10 is the max. – jose can u c Aug 29 '18 at 18:04

If you use softAP, you can set the max number of connections to 16 I believe.

WiFi.softAP(const char* ssid, const char* passphrase, int channel, int ssid_hidden, int max_connection);
| improve this answer | | | | |
  • i use soft ap ,and realy thiscode,and changed the code max connection to 16,but didnt worked.is the chanel numer important? – ehsan haji Sep 1 '18 at 3:48
  • i should do it,so i must try any idea which everyone suggest me – ehsan haji Sep 1 '18 at 14:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.