解决恢复出厂表情消失的bug
authorxue <2144439972@qq.com>
Mon, 13 Oct 2025 01:56:27 +0000 (09:56 +0800)
committerxue <2144439972@qq.com>
Mon, 13 Oct 2025 01:56:27 +0000 (09:56 +0800)
code/sdk/zhihui/leiniao/imsl_ln/ln_api.c
code/sdk/zhihui/leiniao/imsl_ln/ln_api_device_info.c

index 38ffd0f..ed47ab8 100644 (file)
@@ -604,6 +604,7 @@ void ln_ws_process_message(const ws_data_msg_t *data_msg, ws_command_t type)
     case WS_CMD_DEVICE_BIND:
     {
         printf("[WS] DeviceBind:设备绑定\n");
+        do_ln_http_server_send_data(LN_HTTP_SERVICE_CMD_GET_CHARACTER, NULL, 0);
         push_bind_and_unbind_notification(LN_DEVICE_BIND_STATUS_BOUND);
         break;
     }
@@ -1392,7 +1393,7 @@ errcode_t uapi_ln_http_server_init(void)
         printf("create ln_send_service failed %d!\r\n", ret);
         return ERRCODE_FAIL;
     }
-    ln_ws_start(ln_ws_process_message,2000);
+    // ln_ws_start(ln_ws_process_message,2000);
 
     ln_init_required_dirs();
 
index f3535b8..2768a9e 100644 (file)
@@ -419,6 +419,7 @@ uint32_t ln_device_get_user_id_http(const char *device_id,
                     else if (cJSON_IsString(data) && data->valuestring && data->valuestring[0])
                     {
                         printf("device getUserId: data=%s\n", data->valuestring);
+                        do_ln_http_server_send_data(LN_HTTP_SERVICE_CMD_GET_CHARACTER, NULL, 0);
                         push_bind_and_unbind_notification(LN_DEVICE_BIND_STATUS_BOUND);
                     }
                 }