0

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?

Gerben
  • 11,332
  • 3
  • 22
  • 34
ehsan haji
  • 3
  • 1
  • 1
  • 2

3 Answers3

2

The SDK API documentation from Espressif directly notes:

uint8_t max_connection

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

EDIT

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

max_connection

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

jose can u c
  • 6,974
  • 2
  • 16
  • 27
0

The max number of stations for SoftAP is a runtime setting available in Arduino.

ESP32 arduino WiFi library and esp8266 ESP8266WiFi library have it as last parameter in softAP() function which starts the SoftAP.

bool softAP(const char* ssid, const char* passphrase = NULL, 
    int channel = 1, int ssid_hidden = 0, int max_connection = 4);

esp8266 arduino doc

max_connection - optional parameter to set max simultaneous connected stations, from 0 to 8. Defaults to 4. Once the max number has been reached, any other station that wants to connect will be forced to wait until an already connected station disconnects.

ESP32 SDK doc

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

Juraj
  • 18,264
  • 4
  • 31
  • 49
-1

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);