Request format: PUT
URL: http://api.onenet.hk.chinamobile.com/devices/device_id/datastreams/datastream_id
device_id: to be replaced with device ID
datastream_id: to be replaced with device data stream ID
Name | Format | Required? | Description |
---|---|---|---|
tags | array- string | No | Data stream tag, one or more |
unit | string | No | Data unit |
unit_symbol | string | No | Data unit symbol |
Name | Format | Description |
---|---|---|
errno | int | Call error code, where 0 means success. |
error | string | Error description. “succ” means the call is successful. |
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"
}