tencent cloud

All product documents
IoT Hub
CoAP-Based Device Connection
Last updated: 2024-12-27 15:44:26
CoAP-Based Device Connection
Last updated: 2024-12-27 15:44:26
Currently, IoT Hub supports connection over the standard CoAP protocol. For more information, please see RFC 7252.

Differences from Standard CoAP

1. Currently, only message reporting is supported, i.e., reporting SDK messages to IoT Hub.
2. The POST method is supported, while GET/PUT/DELETE methods are not.

Security Level of CoAP Channel

1. DTLS protocol is supported to establish a secure connection.
2. Asymmetric encryption is supported.

Connection Parameters

1. Server address. For devices in the Guangzhou region, enter ${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.
2. The connection port is 5684.

URI Specification

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:
1. ${productId}/${deviceName}/event for publishing
2. ${productId}/${deviceName}/control for subscribing
3. ${productId}/${deviceName}/data for publishing and subscribing
In other words, the URI corresponds to the MQTT topic.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon