Device Twin Acquisition Result
This topic is used to subscribe to the result of obtaining device twins.
Topic
$hw/events/device/{device_id}/twin/get/result
Parameter |
Type |
Description |
---|---|---|
device_id |
String |
Device ID. |
Usage
Use an MQTT client to subscribe to this topic. This topic must be used together with Device Twin Acquisition.
Parameter Description
Parameter |
Type |
Description |
---|---|---|
event_id |
String |
Event ID. |
timestamp |
Int64 |
Timestamp when the event occurred. |
twin |
Object |
A set of end device twin information. Each twin is in the key-value pair format. The value contains the option flag, the twin metadata contains the value type, the expected status contains the expected value and update time, and the actual status contains the actual value and update time. |
Example
$hw/events/device/ab39361a-6fc0-4c94-b919-72b1e08ca690/twin/get/result { "event_id":"123456", "timestamp":1557317510926, "twin":{ "state":{ "expected":{ "value":"stop", "metadata":{ "timestamp":1557316778931 } }, "optional":true, "metadata":{ "type":"string" } } } }
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot