请求方式:PUT
URL: http://api.heclouds.com/devices/device_id/datastreams/datastream_id
device_id:需要替换为设备ID
datastream_id :需要替换为设备数据流ID
参数名称 | 格式 | 是否必须 | 说明 |
---|---|---|---|
tags | array-string | 否 | 数据流标签,可为一个或者多个 |
unit | string | 否 | 数据单位 |
unit_symbol | string | 否 | 数据单位符号 |
参数名称 | 格式 | 说明 |
---|---|---|
errno | int | 调用错误码,为0表示调用成功 |
error | string | 错误描述,为"succ"表示调用成功 |
PUT http://api.heclouds.com/devices/20474930/datastreams/speed HTTP/1.1
{
"tags": ["mobile"],
"unit": "m/s",
"unit_symbol": "m/s"
}
{
"errno":0,
"error":"succ"
}