Currently, IoT Hub supports connection over the standard CoAP protocol. For more information, please see RFC 7252.
${ProductId}.iotcloud.tencentdevices.com
. Here, ${ProductId}
is a variable parameter, and you should replace it with the product ID automatically generated when you create the product.The CoAP message is sent to the URI in the format of /${productId}/${deviceName}/xxx
, where productId
is the product ID registered in the console, and deviceName
is the name of the device under the productId
.
By default, after a product is created, all devices under it will have the permissions of the following topic classes:
${productId}/${deviceName}/event
for publishing${productId}/${deviceName}/control
for subscribing${productId}/${deviceName}/data
for publishing and subscribingIn other words, the URI corresponds to the MQTT topic.
Was this page helpful?