Hello thank you very much for your help, the things you gave me do exactly what I wanted to do.
However, I have some questions about all of them:
1) the wifi_softap_get_station_num() displays the number of devices connected, but sometimes when I disconnect the device the ESP counts it still as connected and after plenty of minutes(around 10) stops counting it. How this can be fixed?
2) for the restriction of max_connections, I changed the parameter in my library to 1:
Code: Select all struct softap_config conf;
wifi_softap_get_config(&conf);
strcpy(reinterpret_cast<char*>(conf.ssid), ssid);
conf.channel = channel;
conf.ssid_len = strlen(ssid);
conf.ssid_hidden = ssid_hidden;
conf.max_connection = 1;
conf.beacon_interval = 100;
However, it still does not work because I can connect from 2 devices. What am I doing wrong?
3) for the event listener can you give me an example how to use it because in the SDK in Github I did not find any
Thank you very much for your help!!!