Sub-Device Login


Sub-Device Login 节点登录子设备。

节点类型

EnOS。

输入和输出能力

该节点具有多个入口点和 2 个出口点 (成功/失败)。

节点属性

../../../_images/sub_device_login.png


名称

该节点的名称。


描述

该节点的描述。

示例

输入示例

{
  "MetaData": {
    "messageType": "SubDeviceLogin",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId",
    "ts": "1660640806971"
  },
  "Body": {
    "clientId": "yourClientId",
    "sign": "32930212b54a6ba1e04906bd69313009497cbe6fbb3047048350790d6c8444c2",
    "deviceKey": "deviceKey2",
    "productKey": "productKey2",
    "secureMode": "2",
    "signMethod": "sha256",
    "timestamp": "1660640806928"
  }
}

输出示例

componentResult 的值说明该设备是否登录成功,登录成功为 Success,登录失败则为 Failure

{
  "MetaData": {
    "messageType": "SubDeviceLogin",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId",
    "componentResult": "Failure",
    "ts": "1660640806971"
  },
  "Body": {
    "clientId": "yourClientId",
    "sign": "32930212b54a6ba1e04906bd69313009497cbe6fbb3047048350790d6c8444c2",
    "deviceKey": "deviceKey2",
    "productKey": "productKey2",
    "secureMode": "2",
    "signMethod": "sha256",
    "timestamp": "1660640806928",
    "ComponentReply[SubDevice-Login]": {
      "productKey": "productKey2",
      "deviceKey": "deviceKey2"
    }
  }
}

相关节点