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

Real-time command- command release

Request format: POST

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

I only want to see examples!!!

Url parameter

Parameter NameFormatRequired?Description
imeistringyesnbiot device identity code
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, corresponding to a part of key value at the data point in the platform model, required
res_idintyesResource id of nbiot device, required
timeoutintnoRequest time-out period, 25 by default (unit: s), value range [ 5,40]

http request parameter

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

Return Parameters

NameFormatDescription
errnointCall error code, where 0 means success.
error stringError description, where "succ" means success.
Description

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

HTTP content is optional.

Request Example

POST http://api.heclouds.com/nbiot/execute HTTP/1.1
api-key: WhI*************v1c= //Must be MasterKey, because it involves personal privacy, use "*******" instead
Content-Type:application/json
Authorization: version=2018-10-31&res=products/23104&et=1554398783&method=sha1&sign=fsBwuj0udOpU3BLoHmpbFwyIo30=

Request parameter example

{
    "args": "ping"  // string
}// The HTTP content part is optional.

Return example

{
    "errno": 0,
    "error": "succ"
} //In the response message, errno represents the error code, and error represents the cause of the error.

< Real-time command-write device resource

缓存命令-read device resource >

个搜索结果,搜索内容 “

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