You need to set max_connection field in wifi_ap_config_t:
Code: Select all
wifi_config_t wifi_config1 = {
.ap = {
.ssid = EXAMPLE_ESP_WIFI_AP_SSID,
.password = EXAMPLE_ESP_WIFI_AP_PASS,
.max_connection = 5 // If not set the default value is 0, is why you cannot connect
},
};