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

Cache command-command release/Execute

Request format: POST

URL: http(s)://api.heclouds.com/nbiot/execute/offline

I only want to see examples!!!

Url parameter

Parameter NameFormatRequired?Description
imeistringYesIMEI of device module, required
obj_idintYesobject id of nbiot device, equivalent to the data flow id in the platform model, required
obj_inst_idintYesid of a specific instance under the device object id of instance, corresponding to a part of key value at the data point in the platform model, required
res_idintYesResource id of nbiot device, required
valid_timestringNoCommand effective time stamp, optional (When it’s left blank, it’s the current time of OneNET by default); when it’s filled in, it shall be bigger than the current time of OneNET server.
expired_timestringYesCommand expiration time stamp, required, bigger than val
retryintNoBetween [0-10]; times of retry after failure (waiting for the device update or online next time), optional (when left blank, 3 by default); when it’s filled in, it shall be between [0, 10].
timeoutintNoExpiration time; when it’s filled in, it shall be between [5, 40]s; when left blank, it’s 25s by default.
trigger_msgintNoCommand trigger uplink message type; when it’s filled in, it shall be between [1, 7]; when left blank, it’s 7 by default

http request parameter

Parameter NameFormatRequired?Description
argsstringCommand character string, size restricted to be 2k

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
uuidstring Cache command uuid

Description

1、Return to the meaning corresponding to errno status code; check API status code.

2、HTTP content is optional.

trigger_msg Trigger type:
1. REGISTER   
2. UPDATE   
3. REGISTER | UPDATE combination  
4. NOTIFY
5. REGISTER | NOTIFY combination
6. UPDATE | NOTIFY combination
7. NOTIFY | UPDATE | REGISTER combination

Request Example

POST http://api.heclouds.com/nbiot/execute/offline?imei=86582003***&valid_time=2016-08-05T08:00:00&expired_time=2016-08-06T08:00:00&obj_id=1212&obj_inst_id=1212&res_id=123 HTTP/1.1
api-key: WhI*************v1c=  //Must be MasterKey, because it involves personal privacy, use "*******" instead

Example of request parameter

POST data
{
    "args":"ping" //string
} //HTTP content part is optional

Return example

{
    "errno": 0,
    "data": {
        "uuid":"42742677-adc3-54ca-83a1-5aaaf71482f8" //Cache command uuid
    },
    "error": "succ"
} //In the response message, errno represents the error code, and error represents the cause of the error.

< ache-write-dev-res

check-spe-dev-cache-comm-list >

个搜索结果,搜索内容 “

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