ESP8266 Developer Zone The Official ESP8266 Forum 2016-03-18T20:02:47+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=1917 2016-03-18T20:02:47+08:00 2016-03-18T20:02:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1917&p=6167#p6167 <![CDATA[Re: RTOS V1.4 版本SDK作为TCP Server没有调用断开连接的回调函数]]>
谢谢,按照你的建议,可以了。

Statistics: Posted by hark — Fri Mar 18, 2016 8:02 pm


]]>
2016-03-18T10:34:55+08:00 2016-03-18T10:34:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1917&p=6162#p6162 <![CDATA[Re: RTOS V1.4 版本SDK作为TCP Server没有调用断开连接的回调函数]]>
请确认,您有在 user_init 中调用 espconn_init 进行初始化吗?

Statistics: Posted by ESP_Faye — Fri Mar 18, 2016 10:34 am


]]>
2016-03-17T11:53:29+08:00 2016-03-17T11:53:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1917&p=6153#p6153 <![CDATA[[Solved] RTOS V1.4 版本SDK作为TCP Server没有调用断开连接的回调函数]]> 软件环境是:RTOS V1.4版本

问题描述:
模块作为STA,socket为TCP Server,当TCP Client连接到模块的TCP Server时会调用espconn_regist_connectcb所注册的函数。

在 espconn_regist_connectcb所注册的函数里面调用espconn_regist_disconcb注册断开连接回调函数。当外界TCP Client断开连接时

espconn_regist_disconcb所注册的函数没有被调用。请确认。谢谢!

Statistics: Posted by hark — Thu Mar 17, 2016 11:53 am


]]>