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

Query command status

Request format: GET

URL:http://api.onenet.hk.chinamobile.com/cmds/cmd_uuid

cmd_uuid: to be replaced with command ID

http request 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 For the command status information returned after the interface is called successfully, see the data description table.
Data Description Table
Name Format Description
status int Command status. See the command status description.
desc string Status description
Command status description
Status value Status description Common scenario
1 Command Created When the device is offline, the command API is called and sent, with the timeout parameter.
2 Command Sent The device is online but does not respond to the command.
4 Command Response Received The device receives the command and sends the command response normally.

Request Example

GET http://api.onenet.hk.chinamobile.com/cmds/81572aae-fc34-5deb-8f06-ab45d73cb12b HTTP/1.1

Return example 1: The command is successfully created but the device is not online.

{
    "errno": 0,
    "data": {
        "status": 1,
        "desc": "command created"
    },
    "error": "succ"
}

Return example 2: The device responds normally.

{
    "errno": 0,
    "data": {
        "status": 4,
        "desc": "Command Response Received"
    },
    "error": "succ"
}

个搜索结果,搜索内容 “

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