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

Upload file

Request format: POST

URL: http://api.onenet.hk.chinamobile.com/bindata

URL Parameters

Name Format Required or not Description
device_id string Yes Device containing the data
datastream_id string Yes Name of the data stream or data stream template containing the data
desc string No File description

http body content

Common binary data, file, image, etc. (**maximum limit: 800k**)

Return Parameters

Name Format Description
errno int Call error code, where 0 means success.
error string Error description. “succ” means the call is successful.
data json Data information returned after the successful interface call. See the data description table.
Data Description Table
Name Format Description
index string Binary data index number, which can be used as a parameter to get the file API

Request Example

POST http://api.onenet.hk.chinamobile.com/bindata?device_id=8029377&datastream_id=bin&desc=testfile HTTP/1.1

<file>

Example of request return

{
    "errno": 0,
    "error": "succ",
    "data": {
        "index": "3491506_1475204886914_bin"
    }
}

个搜索结果,搜索内容 “

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