Closed ChocolateLoverRaj closed 9 months ago
The default configuration of max connections is 3.
In #63, disconnect and connect are repeated, and some are not disconnected. Therefore, the number of connections is increasing and error is occurring.
@taks I tried out the latest code, and multiple devices works. But why not max out the maximum connections to 9 instead of 3?
The average ESP will likely have difficulties handling nine concurrent connections + WiFi. When you use up the resources of the ESP, it starts to behave unpredictably, which is very difficult to debug. Setting the limit lower prevents this and prints a proper error message when the limit is reached
Without these changes, I can only have 1 connection. With these changes, I can have at least 4. Tested on an ESP32-C3 Super Mini
Related to #63