I was studying the function called "espconn_regist_time" and believe that to be a poor function name. Its purpose is to define the timeout interval for a TCP connection.
A possible alternative might be "espconn_regist_timeout" but better yet would be "espconn_set_tcp_timeout".
On a broader note ... maybe we can find a way to review ALL the exposed SDK methods and see if their naming could be improved?
Neil
Poor function name: espconn_regist_time
Re: Poor function name: espconn_regist_time
Postby jinhucn » Wed Dec 23, 2015 12:15 pm
I'm looking for the function to set the timeout interval for tcp client connection. But sdk manual says it is for tcp server only. Dose it work with tcp client?
Re: Poor function name: espconn_regist_time
Postby ESP_Faye » Thu Dec 24, 2015 2:10 pm
Hi,
Sorry that espconn_regist_time only works in TCP server mode.
Maybe you could set a timer to check if ESP8266 received any data, and if not till time out, call espconn_disconnect to disconnect it.
Sorry that espconn_regist_time only works in TCP server mode.
Maybe you could set a timer to check if ESP8266 received any data, and if not till time out, call espconn_disconnect to disconnect it.
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.