Get Sub-Device Info¶
The Get Sub-Device Info node gets the detailed information of all the sub-devices under a logged in gateway.
Node Type¶
EnOS.
Input and Output Ability¶
This node has multiple entry points and 2 exit points (success/failure).
Node Properties¶
Name
The name for this node.
Description
The description for this node.
Samples¶
Input Sample¶
{
"MetaData": {
"messageType": "TopoGet",
"assetId": "assetId",
"deviceKey": "deviceKey",
"productKey": "productKey",
"orgId": "yourOrgId",
"ts": "1660634423930"
},
"Body": {
"ComponentRequest[Topo-Get]": {}
}
}
Output Sample¶
The values of
componentResult
indicates whether the message is obtained successsfully.Success
: The whole message is obtained successfully.Failure
: Failed to obtain part of or the whole message.
The obtained information will be displayed in
ComponentReply[Topo-Get]
in theBody
.
{
"MetaData": {
"messageType": "TopoGet",
"assetId": "assetId",
"deviceKey": "deviceKey",
"productKey": "productKey",
"orgId": "yourOrgId",
"componentResult": "Success",
"ts": "1660634423930"
},
"Body": {
"ComponentRequest[Topo-Get]": {},
"ComponentReply[Topo-Get]": [
{
"deviceKey": "deviceKey1",
"productKey": "productKey1",
"deviceName": "deviceName1",
"assetId": "assetId1"
},
{
"deviceKey": "deviceKey2",
"productKey": "productKey2",
"deviceName": "deviceName2",
"assetId": "assetId2"
}
]
}
}