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!!!
Parameter Name | Format | Required? | Description |
---|---|---|---|
imei | string | Yes | nbiot device identity code |
Name | Format | Description |
---|---|---|
errno | int | Call error code, where 0 means success. |
error | string | Error description, where "succ" means success. |
data | json | Device dependent message returned after the interface is successfully invoked; see Data Description Table |
Name | Format | Description |
---|---|---|
type | string | Command type |
args | json | type interface http parameter |
content | json | type interface http content |
create_time | string | Command creation time |
valid_time | string | Command effective time |
expired_time | steing | Command expiration time |
send_time | string | Command release time |
trigger_msg | int | Command trigger uplink message type, effective between 1~7 |
send_status | int | Send status |
confirm_time | string | Response time |
confirm_status | string | Response status |
cmd_result | json | json result successfully returned by type interface |
feedback_msg | array | Details of data push, possibly more than one |
imei | string | nbiot device identity code |
remain | int | Remaining retry times |
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)
GET http://api.heclouds.com/nbiot/offline/history/10018?imei=86582003*** HTTP/1.1
api-key: WhI*************v1c=
{
"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
}
}