Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reason for limitation of 4 sockets? #30

Open
fredlcore opened this issue Jan 27, 2021 · 1 comment
Open

Reason for limitation of 4 sockets? #30

fredlcore opened this issue Jan 27, 2021 · 1 comment

Comments

@fredlcore
Copy link
Contributor

Is there a hardware reason why the number of sockets is limited to 4? Or could the code be adjusted to allow for a (slightly) larger number, say, 8?
If yes, could this be made configurable?

@JiriBilek
Copy link
Owner

The only reason is the limited memory on ESP8266. I think the number of connections could be rised up by changing the MAX_SOCK_NUM value in wl_definitions.h file. The same holds for the WiFiSpiESP project, the #define is in WiFiSPICmd.h.
Feel free to try it and let me know if it works.
Be warned that it would not work with TLS connections as they require rather big buffer (default 16KB) for communication and with more simultaneous connections you are out of memory on ESP8266.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants