IOT边缘 IOTEDGE-修改点位表配置:请求示例

时间:2024-06-20 17:14:29

请求示例

PUT https://{endpoint}/v2/{project_id}/edge-nodes/{edge_node_id}/ots/data-sources/{ds_id}/points/{point_id}

{
  "name" : "马达电压",
  "collection_config" : {
    "address" : "ns=2;s=Root/Motor/Voltage",
    "data_type" : "int",
    "cycle" : 10000
  },
  "device_id" : "MotorVoltage",
  "property" : "Motor/Voltage",
  "data_type" : "int",
  "processing_config" : {
    "validity" : {
      "min" : 60,
      "max" : 100
    },
    "stream_formula" : "bit(0).bool()|string_to_double(-1.0)|string_to_int(0)",
    "scaling" : {
      "ratio" : 1,
      "base" : 100,
      "accuracy" : 2
    },
    "clean" : {
      "silent_window" : 60,
      "deviation" : 0.1
    }
  }
}
support.huaweicloud.com/api-iotedge/UpdateDcPoint.html