If you connect devices to IoT Platform over MQTT, you must subscribe to topics before you can receive messages from IoT Platform. Link SDK for C versions 3.1, 3.2, and 4.x that are provided by IoT Platform support automatic topic subscription. This article describes topics that are automatically subscribed by devices.

Background information

IoT Platform communicates with devices based on topics. If you want to use multiple features of IoT Platform, you must subscribe to feature-specific topics. A large amount of time is required to subscribe to topics and then enable devices to work properly. To shorten the time, IoT Platform provides the automatic topic subscription feature. You can use specified topics to send messages from devices without sending requests to subscribe to the topics.

Note
  • After devices are connected to IoT Platform by using Link SDK for C version 3.1, 3.2, or 4.x, IoT Platform can send downstream messages by using automatically subscribed topics.
  • If devices are deleted and destroyed, or devices call the aiot_mqtt_unsub operation to unsubscribe from the topics, IoT Platform no longer sends messages to the devices.

Topics

Feature Topic
TSL-based communication /sys/${productKey}/${deviceName}/thing/model/down_raw
/sys/${productKey}/${deviceName}/thing/model/up_raw_reply
/sys/${productKey}/${deviceName}/thing/event/+/post_reply
/sys/${productKey}/${deviceName}/thing/deviceinfo/update_reply
/sys/${productKey}/${deviceName}/thing/deviceinfo/delete_reply
/sys/${productKey}/${deviceName}/thing/dynamicTsl/get_reply
/sys/${productKey}/${deviceName}/thing/dsltemplate/get_reply
/sys/${productKey}/${deviceName}/rrpc/request/+
/sys/${productKey}/${deviceName}/thing/service/property/set
/sys/${productKey}/${deviceName}/thing/service/property/get
/sys/${productKey}/${deviceName}/thing/event/property/history/post_reply
/sys/${productKey}/${deviceName}/thing/service/+
Sub-device management /sys/${productKey}/${deviceName}/thing/gateway/permit
/sys/${productKey}/${deviceName}/thing/topo/change
/sys/${productKey}/${deviceName}/thing/sub/register_reply
/sys/${productKey}/${deviceName}/thing/sub/unregister_reply
/sys/${productKey}/${deviceName}/thing/topo/add_reply
/sys/${productKey}/${deviceName}/thing/topo/delete_reply
/sys/${productKey}/${deviceName}/thing/disable_reply
/sys/${productKey}/${deviceName}/thing/topo/get_reply
Firmware update /ota/device/upgrade/${productKey}/${deviceName}
/ota/device/request/${productKey}/${deviceName}
Remote configuration /sys/${productKey}/${deviceName}/thing/config/push
/sys/${productKey}/${deviceName}/thing/config/get_reply
On-premises communication /sys/${productKey}/${deviceName}/thing/lan/prefix/get_reply
/sys/${productKey}/${deviceName}/thing/lan/blacklist/update_reply
/sys/${productKey}/${deviceName}/thing/lan/prefix/update
Device shadows /sys/${productKey}/${deviceName}/thing/property/desired/get_reply
/sys/${productKey}/${deviceName}/thing/property/desired/delete_reply
/shadow/get/${productKey}/${deviceName}
Response of device resetting /sys/${productKey}/${deviceName}/thing/reset_reply
Response of IoT Platform to device connection /sys/${productKey}/${deviceName}/thing/awss/enrollee/match_reply
/sys/${productKey}/${deviceName}/thing/awss/enrollee/checkin
Response of IoT Platform to sub-device connection /sys/${productKey}/${deviceName}/thing/awss/enrollee/found_reply
/sys/${productKey}/${deviceName}/thing/cipher/get_reply
/sys/${productKey}/${deviceName}/thing/awss/device/switchap
Unique-certificate-per-product authentication of sub-devices /sys/${productKey}/${deviceName}/thing/proxy/provisioning/product_register_reply
Activation of global devices /sys/${productKey}/${deviceName}/thing/bootstrap/config/push
Device job management /sys/{productKey}/{deviceName}/thing/job/notify
/sys/{productKey}/{deviceName}/thing/job/get_reply
/sys/{productKey}/{deviceName}/thing/job/update_reply