Set Measurement Point


Set Measurement Point 节点控制下行的设置测点消息发送到 Kafka。

备注

  • 使用该节点不会主动设置设备的测点;为此,需使用 Send Command 节点。

  • 如果有对设置测点的信息进行用户自定义处理,但没有使用 Set Measurement Point 节点,将会导致信息发送 Kafka 失败,从而导致设备不能接收控制指令。

节点类型

EnOS。

输入和输出能力

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

节点属性

../../../_images/set_measurement_point.png


名称

该节点的名称。


描述

该节点的描述。

示例

输入示例

{
  "MetaData": {
    "messageType": "SetMeasurePoint",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId"
  },
  "Body": {
    "payload": [
      123,
      34,
      105,
      100,
      34,
      58,
      34,
      51,
      48,
      54,
      55,
      125
    ],
    "code": 200,
    "orgId": "yourOrgId",
    "productKey": "productKey",
    "deviceKey": "deviceKey",
    "assetId": "assetId",
    "method": "thing.service.measurepoint.set",
    "extProps": {
      "gwDeviceKey": "deviceKey",
      "gwProductKey": "productKey",
      "%TRACE_ID%": "3f564d0d -f718-4b78-899f-814eaa95cc7e"
    }
  }
}

输出示例

{
  "MetaData": {
    "messageType": "SetMeasurePoint",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId",
    "componentResult": "Success"
  },
  "Body": {
    "payload": [
      123,
      34,
      105,
      100,
      34,
      58,
      34,
      51,
      48,
      54,
      55,
      125
    ],
    "code": 200,
    "orgId": "yourOrgId",
    "productKey": "productKey",
    "deviceKey": "deviceKey",
    "assetId": "assetId",
    "method": "thing.service.measurepoint.set",
    "extProps": {
      "gwDeviceKey": "deviceKey",
      "gwProductKey": "productKey",
      "%TRACE_ID%": "3f564d0d -f718-4b78-899f-814eaa95cc7e"
    }
  }
}