早晨!
我用的是ESP-12F模块,AT固件版本是1.3.0.0,SDK版本是2.0.0.
我用AT+CIPSTART指令连接到服务器后,一段时间不发消息,就会和服务器断开。
断开后不论是服务器还是模块这边都没有任何响应,所以也不知道具体是多久断开。
所以尝试用AT+CIPSTART指令设置Keepalive功能来保持服务器连接,结果发现我设置成60秒,到了60秒就返回一个CLOSE。
一开始我以为是60秒内就已经和服务器断开了导致这个问题,所以我设置成10秒,结果到了10秒也返回CLOSE。
这个是我设置不正确,还是AT固件的BUG,还是本来设计意图就是这样?
我发的指令格式是:AT+CIPSTART="TCP","192.168.0.123",8000,60
请教关于AT+CIPSTART指令keepalive功能的问题
Re: 请教关于AT+CIPSTART指令keepalive功能的问题
Postby ESP_Greg » Thu Oct 13, 2016 10:26 am
您可以先使用local server测试一下。看起来是keepalive时间到了,就被服务器踢掉了。
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.