Message Queuing Telemetry Transport (MQTT) is an asynchronous communication protocol based on the TCP/IP protocol stack. MQTT is a lightweight protocol that is used for message transmission in the publish/subscribe model. You can configure Link SDK for C to connect devices that use the MQTT protocol with IoT Platform.

Prerequisites

Process

The application program calls the API operations of Link SDK for C to connect with IoT Platform over MQTT.

The following figure shows the process. In this example, the ./demos/mqtt_basic_demo.c application program is used.

Development process

For more information about MQTT connection-specific API operations, see aiot_mqtt_api.h.

Examples