This topic describes how to use Link SDK for C to connect a device to IoT Platform. The device uses the microcontroller unit (MCU) on which a real-time operating system (RTOS) runs.
Most electrical devices use the MCU on which an RTOS runs. These devices include industrial automation devices, data collection devices, real-time control devices, and home appliances. To connect these electrical devices to IoT Platform, use Link SDK for C of IoT Platform.
Solution
Connect an MCU to a communication module and use AT commands for communication between the MCU and the communication module. Use Link SDK for C to connect the communication module to IoT Platform and enable communication between each other.
Preparations
The following table describes the required items.
Hardware and software | Description |
MCU |
|
Communication module |
|
Software development environment |
Procedure
Create a product and add a device: Create a product, add a device to the product, and obtain certificate information about the device in the IoT Platform console. The certificate information includes the ProductKey, DeviceName, and DeviceSecret parameters.
Build a development environment for devices: Connect the development boards of the MCU and communication module to build a development environment.
Provision a device: Use Link SDK for C to connect the communication module to IoT Platform.