Multiprotocol Access Product Introduction QuickStart User Guide Development Guide
EDP TCP transparent transmission MQTT Modbus HTTP
FAQ

Update of data stream properties

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

http body parameter

Name Format Required or not Description
tags array- string No Data stream tag, one or more
unit string No Data unit
unit_symbol string No Data unit symbol
cmd string No Periodically issued command, hexadecimal byte string. Example: 010300000002c40b.
interval int No Sampling interval
formula string No Register calculation formula, separated by commas (,) Example: (A0+A1), A0*A1

Return parameter

Name Format Description
errno int Call error code, where 0 means success.
error string Error description. “succ” means the call is successful.

Example of request header

PUT http://api.onenet.hk.chinamobile.com/devices/20474930/datastreams/speed HTTP/1.1

Request parameter example

{
    "cmd": "010300000002c40b",
    "interval": 10
}

Return example

{
    "errno":0,
    "error":"succ"
}

个搜索结果,搜索内容 “

    0 个搜索结果,搜索内容 “