ESP8266 Developer Zone The Official ESP8266 Forum 2016-04-01T10:19:56+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=1745 2016-04-01T10:19:56+08:00 2016-04-01T10:19:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1745&p=6294#p6294 <![CDATA[Re: How do I prevent a connection to re-connect after connectin lost?]]>
Sorry for the inconvenience.

In UART-TCP passthrough mode, if the TCP connection broke, the ESP8266 will re-connect it automatically. If the MCU continually send data through UART, the data will be lost.

Statistics: Posted by ESP_Faye — Fri Apr 01, 2016 10:19 am


]]>
2016-02-06T00:13:49+08:00 2016-02-06T00:13:49+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1745&p=5700#p5700 <![CDATA[How do I prevent a connection to re-connect after connectin lost?]]> I am using the 8266 in transparent mode, and connected to my server application. All works well, but if for some reason the connection is lost, the connection is re-established automatically (I can see multiple attempts in Wireshark from the device). After the connection is re-established, there is no way of my application (from the 8266 side) of known this has happened. The way I have written the server application , this cant be allowed as there has to be a login sequence. I wasnt sure if the timeout parameter in the at+cipstart is used for this, but I get an error if I add it. Below is what I tried , I added the last two parameters but got error (I replaced my ip to xxx.xxx.xxx.xxx for here only)

AT+CIPSTART="TCP","xxx.xxx.xxx.xxx",1963,1964,0


at+gmr returns :
AT version:0.60.0.0(Jan 29 2016 15:10:17)
SDK version:1.5.2(80914727)
compile time:Jan 29 2016 19:07:08

Thanks
Neil

Statistics: Posted by NEIL — Sat Feb 06, 2016 12:13 am


]]>