Get Link SDK for C

Updated at:

Get and use the Link SDK for C for device-side development.

Procedure

  1. Log on to the IoT Platform console.

  2. Go to the SDK customization page.

    1. On the Overview page, click All environment. On the All environment tab, find the instance that you want to manage and click the instance ID or instance name.

    2. In the navigation pane on the left, click Documentation and Tools.

    3. On the Documentation and Tools page, click SDK customization in the Device Access SDK section.

  3. On the SDK customization page, configure the parameters as needed and click Start generation to download the SDK.

    Configure these parameters: Device OS (such as Linux), Device hardware form factor (single-board or MCU/SoC with communication module), Protocol for connecting to IoT Platform (MQTT, HTTPS), Data encryption (TLS-CA, TLS-PSK, or none), and Device authentication method (device secret, with dynamic registration option). Under Advanced Features, select capabilities such as thing model, OTA, time synchronization, device shadow, device logs, device tags, bootstrap service, sub-device management, device diagnostics, task management, remote login, and file upload. SDK version: v4.x (Link SDK for C only). After downloading, replace the sample device credential with your actual credential.

    Download and decompress the SDK file. The directory structure is as follows:

    File or folder

    Description

    ./LinkSDK/ChangeLog.md

    Update history for each feature module.

    ./LinkSDK/components

    Subfolders for the feature modules you selected.

    ./LinkSDK/core

    Core code files for device connection.

    ./LinkSDK/demos

    Sample code for basic and selected advanced features.

    Note

    Exclude the demos folder from your build system when porting.

    ./LinkSDK/external

    Contains the mbedtls C library.

    Uses the third-party mbedtls library for TLS. Replaceable with another TLS library.

    ./LinkSDK/Makefile

    Makefile for SDK compilation.

    ./LinkSDK/portfiles

    TCP/IP protocol stack and system dependency interfaces required to run the SDK.

    If no port exists for your OS, implement the porting functions in the ./portfiles directory.

Next steps

Configure SDK features and start device-side development. Features.