Overview
IoT Platform provides the remote configuration feature. You can upload the configuration file of a product to IoT Platform. After a device goes online, you can download the configuration file to the device and then parse the file for further processing. This article describes how to configure Link SDK for C to remotely configure a device.
Prerequisites
- You have the device authentication information.
- Obtain the C Link SDK.
When you customize the SDK, on the SDK Customization page, in the Advanced Features section, select OTA.
Note You can use the remote configuration or over-the-air (OTA) update feature to download configuration files to devices. - Set up the development environment.
Background information
The remote configuration feature is applied on a product basis. The configuration file that is uploaded to IoT Platform takes effect on all devices of a product. You cannot specify a single device for remote configuration. For more information, see Remote configuration.
How it works
An application establishes a connection with the IoT Platform by calling the C Link SDK APIs based on theconnect with IoT Platform over MQTT and obtain a remote configuration command. The device can receive the command that is sent by IoT Platform or initiate a request to obtain the command. Then, the device initiates an HTTPS request to download the configuration file.
The following time series chart uses the device application ./demos/cota_basic_demo.c as an example to illustrate the implementation flow. You can perform Step 3 or Step 4 as needed.

For more information about remote configuration-specific API operations, see aiot_ota_api.h.
Examples
- For a code sample of the MQTT connection feature, see Usage example.
- For error codes related to the MQTT connection feature, see aiot_ota_api.h.