Get Sub-Device Info¶
Get Sub-Device Info 节点获取登录网关的全部子设备的详细信息。
节点类型¶
EnOS。
输入和输出能力¶
该节点具有多个入口点和 2 个出口点 (成功/失败)。
节点属性¶
名称
该节点的名称。
描述
该节点的描述。
示例¶
输入示例¶
{
"MetaData": {
"messageType": "TopoGet",
"assetId": "assetId",
"deviceKey": "deviceKey",
"productKey": "productKey",
"orgId": "yourOrgId",
"ts": "1660634423930"
},
"Body": {
"ComponentRequest[Topo-Get]": {}
}
}
输出示例¶
componentResult
的值说明信息是否获取成功,全部获取成功为 Success
,部分或全部获取失败则为 Failure
。Body 中 ComponentReply[Topo-Get]
的值中将展示获取到的一个或多个子设备信息。
{
"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"
}
]
}
}