【修改】ESP8266 发送 AT 确定模块启动成功改为延时等待启动成功
Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
parent
fe97c0f6c4
commit
51a05a579d
|
@ -553,11 +553,7 @@ static void esp8266_init_thread_entry(void *parameter)
|
||||||
goto __exit;
|
goto __exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (at_client_wait_connect(ESP8266_WAIT_CONNECT_TIME))
|
rt_thread_delay(rt_tick_from_millisecond(5000));
|
||||||
{
|
|
||||||
result = -RT_ETIMEOUT;
|
|
||||||
goto __exit;
|
|
||||||
}
|
|
||||||
/* reset module */
|
/* reset module */
|
||||||
AT_SEND_CMD(resp, "AT+RST");
|
AT_SEND_CMD(resp, "AT+RST");
|
||||||
/* reset waiting delay */
|
/* reset waiting delay */
|
||||||
|
|
Loading…
Reference in New Issue