ESP8266 Developer Zone The Official ESP8266 Forum 2017-01-06T01:30:21+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=3221 2017-01-06T01:30:21+08:00 2017-01-06T01:30:21+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3221&p=11036#p11036 <![CDATA[Re: espconn_mesh_disconnect does not close tcp connection]]> Statistics: Posted by 0xfa1c0 — Fri Jan 06, 2017 1:30 am


]]>
2017-01-04T11:42:06+08:00 2017-01-04T11:42:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3221&p=11009#p11009 <![CDATA[Re: espconn_mesh_disconnect does not close tcp connection]]> Do not call this API in any espconn callback. If needed, please use system task to trigger espconn_mesh_ disconnect.you can consult mesh_api document:http://espressif.com/sites/default/files/documentation/30a-esp8266_nonos_mesh_api_reference_v1.0.0_20160203.pdf

Statistics: Posted by ESP_Xutao — Wed Jan 04, 2017 11:42 am


]]>
2017-01-01T17:11:49+08:00 2017-01-01T17:11:49+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3221&p=10990#p10990 <![CDATA[espconn_mesh_disconnect does not close tcp connection]]>

Code:

espconn_mesh_enable(mesh_enable_cb, MESH_ONLINE);, then each device sends data through

Code:

espconn_mesh_sent
function.
The behaviour that I would expect is that once sent the data, the device disconnects from the server closing the TCP connection, to do this I call

Code:

espconn_mesh_disconnect
, but it doesn't close the tcp connection, there is any other command? Thank you

Statistics: Posted by 0xfa1c0 — Sun Jan 01, 2017 5:11 pm


]]>