請求方式:PUT
URL: http://api.onenet.hk.chinamobile.com/devices/device_id/datastreams/datastream_id
device_id: 需 要 替 換 為 設 備 lD datastream_id :需要替換為設備數據流lD
參數名稱 | 格式 | 是否必須 | 說明 |
---|---|---|---|
tags | array-string | 否 | 數據流標籤,可為一個或者多個 |
unit | string | 否 | 數據單位 |
unit_symbol | string | 否 | 數據單位符號 |
參數名稱 | 格式 | 說明 |
---|---|---|
errno | int | 調用錯誤碼,為0表示調用成功 |
error | string | 錯誤描述,為“succ”表示調用成功 |
PUT http://api.onenet.hk.chinamobile.com/devices/20474930/datastreams/speed HTTP/1.1
{
"tags": ["mobile"],
"unit": "m/s",
"unit_symbol": "m/s"
}
{
"errno":0,
"error":"succ"
}