request new AT command to limit TCP server to 1 connection

doughboy
Posts: 63
Joined: Thu Mar 05, 2015 1:54 am

request new AT command to limit TCP server to 1 connection

Postby doughboy » Wed Mar 18, 2015 2:30 am

I'd like to request an AT command to limit TCP server to 1 connection.

The reason for this is in an arduino environment with limited memory, it is impossible to handle multiple connections simultaneously due to memory constraint.
Imagine there is only one pipe for incoming data, the we get +IPD for 0, 1,2,3 each with say 1k. If arduino program is currently servicing connection 0, it will have to copy and save the data for connections 1,2,3 in order to continue and complete processing for connection 0. esp can hold on to socket until the current open socket is closed, then generate the 1,CONNECT. Then generate 2 and 3 connect after each one is closed.

What does the espconn_tcp_set_max_con_allow and espconn_tcp_getMax_con_allow do? will it deny second connection to server? or it will still accept it and just not send a 1,CONNECT to uart until 0 is closeD?

Thanks.

doughboy
Posts: 63
Joined: Thu Mar 05, 2015 1:54 am

Re: request new AT command to limit TCP server to 1 connecti

Postby doughboy » Wed Mar 18, 2015 2:40 am

or instead of a new AT command, to allow TCP server with CIPMUX=0, which makes it only work on 1 connection at a time.
currently, tcp server mode only works if CIPMUX=1.

phil31
Posts: 43
Joined: Thu Nov 13, 2014 3:40 pm

Re: request new AT command to limit TCP server to 1 connecti

Postby phil31 » Thu Mar 19, 2015 9:41 pm

hi,

i agree and i already request this feature 1 or 2 months ago ..
but it seem that AT firmware is not a priority to Espressif team ..

regards

AlOdin
Posts: 7
Joined: Tue Oct 28, 2014 1:59 pm

Re: request new AT command to limit TCP server to 1 connecti

Postby AlOdin » Mon Mar 23, 2015 8:19 pm

doughboy wrote:to allow TCP server with CIPMUX=0, which makes it only work on 1 connection at a time.


i need this feature too...
Regards, Alexander

Who is online

Users browsing this forum: No registered users and 2 guests