MQTT is a lightweight publish-subscribe messaging protocol built on TCP/IP for asynchronous communication. IoT Platform supports MQTT 5.0, improving system performance, stability, and scalability. Configure the C Link SDK to connect devices to Alibaba Cloud IoT Platform.
Prerequisites
-
Obtain the C Link SDK. When you customize the SDK, on the SDK Customization page, in the Connect to IoT Platform Protocol section, select MQTT 5.0.0.
How it works
Applications use C Link SDK APIs to connect to IoT Platform over the MQTT 5.0 protocol.
The following sequence diagram shows the implementation flow, using the device application ./demos/mqtt_v5_basic_demo.c as an example.

-
For more information about MQTT 5.0 connection APIs, see aiot_mqtt_api.h.
-
For more information about MQTT 5.0 attribute management APIs, see aiot_mqtt_props_api.h.
Examples
-
For an example of the MQTT 5.0 connection feature, see Examples.
-
For error codes related to the MQTT 5.0 connection feature, see Common error codes.