Device Member Acquisition Result
This topic is used to subscribe to the result of obtaining end device member information.
Topic
$hw/events/node/{node_id}/membership/get/result
| Parameter | Type | Description |
|---|---|---|
| node_id | String | Node ID. |
Usage
Use an MQTT client to subscribe to this topic. This topic must be used together with Device Member Acquisition.
Parameter Description
| Parameter | Type | Description |
|---|---|---|
| event_id | String | Event ID. |
| timestamp | Int64 | Timestamp when the event occurred. |
| devices | Array | Information about end devices, including the device ID, name, and properties. The properties are in the key-value pair format. The key indicates the property name, the value contains the property value and the optional flag, and metadata contains the value type. |
Example
$hw/events/node/3fbb5b8d-32db-4271-a34f-a013e021b6ce/membership/get/result { "event_id":"bc876bc-345d-4050-86a8-319a5b13cc10", "timestamp":1557317193524, "devices":[ { "id":"ab39361a-6fc0-4c94-b919-72b1e08ca690", "name":"IEF-device", "state":"unknown", "attributes":{ "address":{ "value":"longgang", "optional":true, "metadata":{ "type":"string" } } } } ] }
Last Article: Device Member Acquisition
Next Article: Device Twin Acquisition
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.