Skip to content

Only 5 TCP sockets #3185

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

Closed
hcs-svn opened this issue May 1, 2017 · 4 comments
Closed

Only 5 TCP sockets #3185

hcs-svn opened this issue May 1, 2017 · 4 comments

Comments

@hcs-svn
Copy link

hcs-svn commented May 1, 2017

As far as I found out until now the default for the maximum number of concurrent TCP sockets ist 5.
Is there a way to increase it?

I see that the ESP32 SDK has an espconn_tcp_set_max_con method but I can not get it working.
Results in linker error: "undefined reference to espconn_tcp_set_max_con(unsigned char)"

Is it possible to use this method to increase the number of concurrent TCP sockets?

@bebo-dot-dev
Copy link

does this help: #570 (see max_connection)

@hcs-svn
Copy link
Author

hcs-svn commented May 1, 2017

Thanks, that pointed me to the right direction.

extern "C" {
  #include "espconn.h"
}

did the trick and
espconn_tcp_set_max_con(8);
allows now 8 concurrent TCP clients

@fpalarmini
Copy link

This function "espconn_tcp_set_max_con(uint8 num)" did not work for me. Always returns -12 (invalid argument)... Does anyone have a suggestion?
The version of the toolchain is 2.4.1.

@d-a-v
Copy link
Collaborator

d-a-v commented Oct 8, 2018

espconn is not tested with lwip2. Could you try with lwip1.4 in tools menu ?
Why don't you use arduino's WiFiServer / WiFiClient ?

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

No branches or pull requests

4 participants