- after calling espconn_connect and before espconn_connect_callback is received?
- after calling espconn_sent and before espconn_sent_callback is received?
valid states for calling espconn_disconnect
valid states for calling espconn_disconnect
Postby tve » Tue Jul 28, 2015 2:43 pm
Is it valid and safe to call espconn_disconnect():
Re: valid states for calling espconn_disconnect
Postby ESP_Faye » Fri Jul 31, 2015 10:33 am
Hi,
So sorry for the late reply..
-> Please do not do that.. It is not safe. We will optimize this in next SDK, but still, please do not do that.
-> If you registered a disconnect callback, you will get a disconnect callback after calling espconn_disconnect(). If the TCP connection broke unexpected, it will enter espconn_reconnect_callback ( if you registered one).
Thanks for your interest in Espressif Systems and ESP8266 !
So sorry for the late reply..
tve wrote:Is it valid and safe to call espconn_disconnect():
after calling espconn_connect and before espconn_connect_callback is received?
after calling espconn_sent and before espconn_sent_callback is received?
-> Please do not do that.. It is not safe. We will optimize this in next SDK, but still, please do not do that.
tve wrote:after calling espconn_disconnect() will I get a espconn_disconnect_callback?
-> If you registered a disconnect callback, you will get a disconnect callback after calling espconn_disconnect(). If the TCP connection broke unexpected, it will enter espconn_reconnect_callback ( if you registered one).
Thanks for your interest in Espressif Systems and ESP8266 !
Who is online
Users browsing this forum: No registered users and 71 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.