Explorar el Código

【修改】ESP8266 发送 AT 确定模块启动成功改为延时等待启动成功

Signed-off-by: chenyong <1521761801@qq.com>
chenyong hace 7 años
padre
commit
51a05a579d
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1 5
      at_socket_esp8266.c

+ 1 - 5
at_socket_esp8266.c

@@ -553,11 +553,7 @@ static void esp8266_init_thread_entry(void *parameter)
         goto __exit;
     }
 
-    if (at_client_wait_connect(ESP8266_WAIT_CONNECT_TIME))
-    {
-        result = -RT_ETIMEOUT;
-        goto __exit;
-    }
+    rt_thread_delay(rt_tick_from_millisecond(5000));
     /* reset module */
     AT_SEND_CMD(resp, "AT+RST");
     /* reset waiting delay */