Sub-Device Logout¶
The Sub-Device Logout node logs out a sub-device.
The node sends an uplink message, and the device will send a sub-device logout message to the cloud.
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": "SubDeviceLogout",
"assetId": "assetId",
"deviceKey": "deviceKey",
"productKey": "productKey",
"orgId": "yourOrgId",
"ts": "1660116537356"
},
"Body": {
"deviceKey": "subdeviceKey1",
"productKey": "productKey1"
}
}
Output Sample¶
The values of componentResult
indicates whether the device is logged out successsfully.
Success
: The device is logged out successfully.Failure
: Failed to log out the device.
{
"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"
}
}
}