Parcourir la source

add: 添加wifi自动重连, 延时3秒

Wendal Chen il y a 2 ans
Parent
commit
da4e2baf69
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      app/network/luat_wlan_air101.c

+ 3 - 0
app/network/luat_wlan_air101.c

@@ -77,6 +77,7 @@ static void netif_event_cb(u8 status) {
     {
     case NETIF_WIFI_JOIN_FAILED:
         LLOGI("join failed");
+        tls_auto_reconnect(3);
         break;
     case NETIF_WIFI_DISCONNECTED:
         wlan_state = 0;
@@ -93,6 +94,8 @@ static void netif_event_cb(u8 status) {
         msg.arg1 = status;
         luat_msgbus_put(&msg, 0);
         break;
+    case NETIF_WIFI_SOFTAP_SUCCESS :
+        break;
     default:
         break;
     }