Help Center/
IoT Device Access/
User Guide/
Message Communications/
Broadcast Communication/
Broadcast Communication Usage
Updated on 2023-10-18 GMT+08:00
Broadcast Communication Usage
Broadcast Communication Usage
Figure 1 Broadcast communication sequence diagram
Procedure
- Initiate the connection authentication for the device. For details, see Device Connection Authentication.
- After the device is authenticated, initiate broadcast topic subscription. The broadcast topic must be prefixed with $oc/broadcast/. An example is as follows:
$oc/broadcast/test
- The application broadcasts a message with the topic name and message content specified.
POST https://{Endpoint}/v5/iot/{project_id}/broadcast-messages Content-Type: application/json X-Auth-Token: ******** { "topic_full_name" : "$oc/broadcast/test", "message" : "eyJhIjoxfQ==" }
The topic must be prefixed with $oc/broadcast/, and the message content must be encoded using Base64.
- The device receives the broadcast message. Example message:
Topic: $oc/broadcast/test Data content {"a":1}
Parent topic: Broadcast Communication
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot