Sub-Device Logout¶
Sub-Device Logout 节点支持子设备登出。
该节点发送上行消息,即设备向云端发送子设备登出的消息。
节点类型¶
EnOS。
输入和输出能力¶
该节点具有多个入口点和 2 个出口点 (成功/失败)。
节点属性¶
名称
该节点的名称。
描述
该节点的描述。
示例¶
输入示例¶
{
"MetaData": {
"messageType": "SubDeviceLogout",
"assetId": "assetId",
"deviceKey": "deviceKey",
"productKey": "productKey",
"orgId": "yourOrgId",
"ts": "1660116537356"
},
"Body": {
"deviceKey": "subdeviceKey1",
"productKey": "productKey1"
}
}
输出示例¶
componentResult
的值说明该设备是否登出成功,登出成功为 Success
,登出失败则为 Failure
。
{
"MetaData": {
"messageType": "SubDeviceLogout",
"assetId": "assetId",
"deviceKey": "deviceKey",
"productKey": "productKey",
"orgId": "yourOrgId",
"componentResult": "Success",
"ts": "1660116537356"
},
"Body": {
"deviceKey": "subdeviceKey1",
"productKey": "productKey1",
"ComponentReply[SubDevice-Logout]": {
"productKey": "productKey1",
"deviceKey": "subdeviceKey1"
}
}
}