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

Real-time command-resource discovery

Request format: GET

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

I only want to see examples!!!

Url parameter

Parameter NameFormatRequired?Description
imeistringYesIdentity code of nbiot device, required
obj_idintYesobject id of nbiot device, equivalent to the data flow id in the platform model, required
obj_inst_idintNoid of a specific instance under the device object, corresponding to a part of key value at the data point in the platform model, optional
timeoutintNoTime-out period, optional, 25s by default, value range [5, 40]

http request return parameter

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

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

If the data returned is an empty array, it means there is no resource.

Request Example

GET http://api.heclouds.com/nbiot/discover HTTP/1.1
api-key:xxxx-ffff-zzzzz,must be masterKey
Authorization: version=2018-10-31&res=products/23104&et=1554398783&method=sha1&sign=fsBwuj0udOpU3BLoHmpbFwyIo30=

Return example

{
    "errno": 0,
    "error": "succ",
    "data":[
          {
            "obj_inst_id":3,
            "res_id":[3, 2, 4]
          },
          {},
          ……
        ]
}

< Check data point

real-time command-resource subscription>

个搜索结果,搜索内容 “

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