NB-IoT Suite Product Introduction QuickStart User Guide Device Development Guide Application Development Guide Best Practices FAQ Service agreement Update Log

Check the details of specified cache command.

Request format: GET

URL: http(s)://api.heclouds.com/nbiot/offline/history/{uuid}

Note: uuid is the ID of cache command.

I only want to see examples!!!

Url parameter

Parameter NameFormatRequired?Description
imeistringYesnbiot device identity code

Return Parameters

NameFormatDescription
errnointCall error code, where 0 means success.
error stringError description, where "succ" means success.
datajsonDevice dependent message returned after the interface is successfully invoked; see Data Description Table

Data Description Table

NameFormatDescription
typestringCommand type
argsjsontype interface http parameter
contentjsontype interface http content
create_timestringCommand creation time
valid_timestringCommand effective time
expired_timesteingCommand expiration time
send_timestringCommand release time
trigger_msgintCommand trigger uplink message type, effective between 1~7
send_statusintSend status
confirm_timestringResponse time
confirm_statusstringResponse status
cmd_resultjsonjson result successfully returned by type interface
feedback_msgarrayDetails of data push, possibly more than one
imeistringnbiot device identity code
remainintRemaining retry times
Description

send_status:: 1.Command wait 2.Command cancelled 3.Command sent to device 4.Command expired 5.Command sent successfully 6.Command sent failure

8. Other undefined effors (undefined)

confirm_status status description:: 0.SUCCESS (command executed sucessfully) 1.METHOD_NOT_AllOWED (operation not allowed by the object or resource) 2.FORBIDDEN (terminal unregistered) 3.NOT_FOUND (the object or resource is not found) 4.NTERNAl_SERVER_ERROR (device response code error) 5.TIME_OUT (device response timeout) 6.REQ_PARAM_ERROR (request parameter error) 7.RESP_ERROR (device response message error) 8.UNAUTHORIZED (no access right) 9.BAD_REQUEST (request format error, such as lack of parameter or code) 10.NOT_ACCEPTABlE (no preferred message format returnable) 11.UNSUPPORTED_CONTENT_FORMAT (specified message format not supported) 12.OFFlINE (device unregistered) 13.ADDR_OCCUPIED (device address occupied by other devices)

Request Example

GET http://api.heclouds.com/nbiot/offline/history/10018?imei=86582003*** HTTP/1.1
api-key: WhI*************v1c=

Return example

{
    "errno": 0,
    "error": "succ",
    "data":
        {
        "type":"READ",
        "args": {
          // type interface http parameter
        },
        "content": {
        // type interface http content
        },
        "create_time":"2017-08-28 11:34:58",
        "valid_time":"2017-08-28 11:34:58",
        "expired_time":"2017-08-28 11:34:58",
        "send_time":"2017-08-28 11:34:58",
        "trigger_msg": 1,
        "send_status": 5,// command release success
        "confirm_time": "2017-08-28 11:34:58",
        // Command response result; if it’s not success, there is no cmd_result “confirm_status”: 
        "confirm_status": "SUCCESS",
        //response content
        "cmd_result": {
           // json result successfully returned by type interface
        } ,
        "feedback_msg": [//data push details
            {
                "feedback_time": "2019-02-28 13:50:43",
                "feedback_status": 0
            },
            {
                "feedback_time": "2019-02-28 13:50:43",
                "feedback_status": 0
            }
        ],
        "imei":"869975031234561",
        "remain":"3"//Remaining retry times
    }
}

< cache command- command release

Check the details of specified cache command>

个搜索结果,搜索内容 “

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