Device Twin Modification Result
This topic is used to subscribe to the result of modifying device twins.
Topic
$hw/events/device/{device_id}/twin/update/result
Parameter |
Type |
Description |
---|---|---|
device_id |
String |
End device ID. |
Usage
Use an MQTT client to subscribe to this topic. This topic must be used together with Device Twin Modification.
Parameter Description
Parameter |
Type |
Description |
---|---|---|
event_id |
String |
Event ID. |
timestamp |
Int64 |
Timestamp when the event occurred. |
twin |
Object |
A set of modified device twins. 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/update/result { "event_id":"123457", "timestamp":1557317614026, "twin":{ "state":{ "actual":{ "value":"stop", "metadata":{ "timestamp":1557317614026 } }, "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