ESP8266 Developer Zone The Official ESP8266 Forum 2015-03-23T20:19:34+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=278 2015-03-23T20:19:34+08:00 2015-03-23T20:19:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=278&p=1126#p1126 <![CDATA[Re: request new AT command to limit TCP server to 1 connecti]]>
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...

Statistics: Posted by AlOdin — Mon Mar 23, 2015 8:19 pm


]]>
2015-03-19T21:41:59+08:00 2015-03-19T21:41:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=278&p=1087#p1087 <![CDATA[Re: request new AT command to limit TCP server to 1 connecti]]>
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

Statistics: Posted by phil31 — Thu Mar 19, 2015 9:41 pm


]]>
2015-03-18T02:40:57+08:00 2015-03-18T02:40:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=278&p=1067#p1067 <![CDATA[Re: request new AT command to limit TCP server to 1 connecti]]> currently, tcp server mode only works if CIPMUX=1.

Statistics: Posted by doughboy — Wed Mar 18, 2015 2:40 am


]]>
2015-03-18T02:30:13+08:00 2015-03-18T02:30:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=278&p=1065#p1065 <![CDATA[request new 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.

Statistics: Posted by doughboy — Wed Mar 18, 2015 2:30 am


]]>