ESP8266 Developer Zone The Official ESP8266 Forum 2015-04-20T14:41:10+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=376 2015-04-20T14:41:10+08:00 2015-04-20T14:41:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=376&p=1436#p1436 <![CDATA[Re: can esp8266 sdk add keepalive get status interface?]]>
麻烦调用 espconn_set_opt 设置 enable TCP keepalive

调用 espconn_regist_reconcb 注册 reconnect callback

当连接断开后,等待几分钟,底层 retry 失败后会进入 reconnect callback

Statistics: Posted by ESP_Faye — Mon Apr 20, 2015 2:41 pm


]]>
2015-04-17T17:59:47+08:00 2015-04-17T17:59:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=376&p=1399#p1399 <![CDATA[Re: can esp8266 sdk add keepalive get status interface?]]> Statistics: Posted by grantgao — Fri Apr 17, 2015 5:59 pm


]]>
2015-04-17T17:54:31+08:00 2015-04-17T17:54:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=376&p=1398#p1398 <![CDATA[Re: can esp8266 sdk add keepalive get status interface?]]>
Espressif_Faye wrote:
Hi,

call espconn_regist_reconcb to register a reconnect callback, when TCP connection broke and retry fail, it goes into the reconnect callback.

Thanks for your interest in ESP8266 .


i know what you said,and i also implemented the callback like this "espconn_regist_reconcb(user_contype.pCon, we_link_reconn_cb);"
it sure can reconnect when TCP connection broken. but i mean the otherwise,you can test as follow step:
1.boot esp8266 and wait it connect with local TCP server successful
2.plug out Ethernet wire(RJ45 on you PC)
now ,you can see esp8266 report nothing and won't enter "espconn_regist_reconcb" also

Statistics: Posted by grantgao — Fri Apr 17, 2015 5:54 pm


]]>
2015-04-17T17:33:45+08:00 2015-04-17T17:33:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=376&p=1395#p1395 <![CDATA[Re: can esp8266 sdk add keepalive get status interface?]]>
call espconn_regist_reconcb to register a reconnect callback, when TCP connection broke and retry fail, it goes into the reconnect callback.

Thanks for your interest in ESP8266 .

Statistics: Posted by ESP_Faye — Fri Apr 17, 2015 5:33 pm


]]>
2015-04-17T17:24:18+08:00 2015-04-17T17:24:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=376&p=1394#p1394 <![CDATA[can esp8266 sdk add keepalive get status interface?]]> Statistics: Posted by grantgao — Fri Apr 17, 2015 5:24 pm


]]>