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

Query of data stream details

Request format: GET

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

Return Parameters

Parameter Name Format Description
errno int Call error code, where 0 means success.
error string Error description. “succ” means the call is successful.
data json Device-related information returned after interface is successfully called. See the Data Description Table.
Data Description Table
Parameter Name Format Description
id string Data stream ID
create_time string Data stream creation time
update_at string Upload time of the latest data
current_value string/int/json... The latest data point
cmd string Issue commands cyclically
interval int Sampling interval
formula string Register calculation formula

Request Example

GET http://api.onenet.hk.chinamobile.com/devices/20474930/datastreams/temperature HTTP/1.1

Return Example

{
    "errno": 0,
    "data": {
        "create_time": "2017-04-17 14:03:10",
        "update_at": "2017-04-17 14:05:42",
        "formula": "A0+A1",
        "interval": 10,
        "id": "no2",
        "cmd": "010300000002c40b",
        "current_value": {
            "0": "555",
            "1": "0"
        }
    },
    "error": "succ"
}

个搜索结果,搜索内容 “

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