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;
}
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();
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);
}
}