Device-side development

更新时间:
复制 MD 格式

You can develop the device side using the IoT Platform Link Visual device-side SDK and the low-power solution device-side SDK. The low-power solution SDK consists of two parts: a video chip-side SDK and a Wi-Fi module-side SDK.

Prerequisites

Create a product in the console, and complete the product's function definitions and parameter settings. For more information, see Create a product and configure the app.

SDK introduction

Link Visual device-side SDK

For more information about the Link Visual device-side SDK for video services, see SDK introduction.

Low-power solution device-side SDK

Table 1. Function introduction
SDK nameRunning locationDescription
lv_proxyOn the video chipImplements the low-power solution without modifying the Link Vision SDK.
lv_commOn the Wi-Fi moduleThe lv_comm SDK handles heartbeat keepalive, maintains persistent connections, and enables data pass-through.
  • Video chip-side SDK
    // Process flow
    // Initialization
    lv_proxy_start();
    lv_init();
    IOT_Linkkit_Connect();
    // During runtime
    while(1) {
        //
    }
    // Exit
    IOT_Linkkit_Close();
    lv_destroy();
    lv_proxy_stop();
  • Wi-Fi module-side SDK
    API operationFunction
    lv_comm_api_initInitializes the SDK.
    lv_comm_api_data_inputWrites data received from the main controller. This operation returns LV_COMM_CODE_SUCCESS for success or another error code for failure.
    lv_comm_api_status_setSets the lv_comm status. For more information, see the developer document.
    lv_comm_api_opt_setSets SDK-related properties.

Related documents

Refer to the following documents to complete development for your doorbell camera or camera.