I have two ESP's one set as AP with TCP server and another ESP as STA. The STA connects to AP and establishes TCP connection. After sending few thousand bytes ~10KB-20KB the connection times out and the STA has to establish TCP connection again.
Is there anyway to stop the ESP STA from timing out and keep the connection alive through out the whole transmission? (Note: I am constantly sending packets so the connection is always being used)
TCP Timeout
Re: TCP Timeout
Postby kolban » Tue Aug 11, 2015 12:33 am
Howdy,
The default idle timeout on a TCP connection is about 10 seconds. The SDK has a function called "espconn_regist_time" which allows you to override this default. The maximum idle allowable duration of a TCP connection is 2 hours.
Neil
The default idle timeout on a TCP connection is about 10 seconds. The SDK has a function called "espconn_regist_time" which allows you to override this default. The maximum idle allowable duration of a TCP connection is 2 hours.
Neil
Who is online
Users browsing this forum: No registered users and 63 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.