【Feedback】关于TCP协议BUG,回包问题
Re: 关于TCP协议BUG,回包问题
Postby ShaoPU » Wed Apr 06, 2016 2:52 pm
Espressif_Faye wrote:您好,
请问您在 ESP8266 端是否使能了 keep alive 功能?
没有使能keep alive功能。
是数据包重发导致keep alive的。
我们服务端和ESP8266都没有用keep alvie这个功能的。
Code: Select all
LOCAL void ICACHE_FLASH_ATTR
gw_connect_cb(void *arg)
{
struct espconn *pespconn = arg;
TcpPrint("gw_connect_cb\n");
os_timer_disarm(&check_timer);
espconn_regist_recvcb(pespconn, gw_recv_cb);
espconn_regist_sentcb(pespconn,gw_sent_cb);
espconn_set_opt(pespconn,0x04);
espconn_regist_write_finish(pespconn,gw_write_finish);
init_fddat(fd);
fd->PacketLen = T16(PACK_SIZE(32));
fd->CMDID = T16(CMD_TOKEN);
memcpy(fd->uCmdRsp.tokeninf.Token,Token,MAX_TOKEN);
set_timestamp(&fd->uCmdRsp.tokeninf.tm);
espconn_send(pespconn,(uint8*)fd,PACK_SIZE(32));
os_timer_setfn(&check_timer, (os_timer_func_t *)heart_beat_timer, &gw_conn);
os_timer_arm(&check_timer, 500, 0);
//send_data(PACK_SIZE(32),(char *)fd);
}
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.