Hi,
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
How do I prevent a connection to re-connect after connectin lost?
Re: How do I prevent a connection to re-connect after connectin lost?
Postby ESP_Faye » Fri Apr 01, 2016 10:19 am
Hi,
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.
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.
Who is online
Users browsing this forum: No registered users and 2 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.