If you use the C programming language to develop products, you can use Link SDK for C provided by IoT Platform to simplify the development process. The SDK allows you to connect devices to IoT Platform with ease. This article describes the usage notes, features, and versions of Link SDK for C.
Usage notes
- You can use Link SDK for C to connect devices with IoT Platform over the Internet.
- You can configure Link SDK for C to implement multiple features to manage and monitor your devices. For more information, see Features.
- You can customize Link SDK for C based on your business needs. For more information, see Obtain the SDK.
- You can port Link SDK for C based on operating systems or hardware platforms. For
more information, see Port the SDK.
Link SDK for C may not support devices that use a microcontroller unit (MCU) and a module for communication. In this case, you can develop the SDK based on the protocol. For more information, see the following articles:
Features
Type | Feature | Description | Reference |
---|---|---|---|
Device connection | Connection over MQTT |
Establishes an MQTT connection between a device and IoT Platform to achieve communication. Notice If you need to push messages from IoT Platform to devices, use the MQTT protocol for
connection.
|
|
Connection over HTTPS |
Establishes an HTTPS connection between a device and IoT Platform. Then, the device can submit data to IoT Platform. |
||
Device authentication |
|
||
Message communication | RRPC | Sends messages from IoT Platform to devices by using remote synchronous calls. | |
Broadcast communication | Broadcasts messages from the IoT Platform server to devices. The devices do not need to subscribe to broadcast topics. | ||
Device management | Thing Specification Language (TSL) models | Manages devices based on TSL models. You do not need to convert data formats during interaction between devices and IoT Platform. This way, development costs are reduced. | |
Device tags | Manages devices by using custom device tags. | ||
Device jobs | Initiates jobs on multiple devices at the same time. The jobs are categorized into the following types: jobs to set properties, jobs to asynchronously call services, and custom jobs. | ||
Device shadows | Caches device status. An online device can receive commands from IoT Platform. If the device is offline, the device can request the cached commands after the device goes online. | ||
NTP service | Synchronizes the time in IoT Platform to devices. | ||
Gateways and sub-devices | Connects the devices that do not have IP addresses to IoT Platform by using a gateway. | ||
Device distribution | Allows you to burn information on devices in different regions. This facilitates business migration. | ||
Monitoring and O&M | Remote access | Remotely controls and manages devices. | - |
Log uploading | Uploads device logs in real time. | ||
Over-the-air (OTA) update | Updates devices by using IoT Platform.
|
||
Remote configuration | Remotely updates the system parameters and network parameters of the device without stopping or restarting the device. |
Versions
Version number | Description | Remarks | Reference |
---|---|---|---|
4.x |
|
Notice This version of the SDK is regularly maintained and updated. We recommend that you
use this version of the SDK.
|
|
3.x | Provides a tool to extract code and modify features. |
|
- |
2.x |
|
|
|
1.x | None | We recommend that you do not use this version of the SDK. | None |