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

real-time command-read device resource

Request format: GET

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

I only want to see examples!!!

Url parameter

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

Return Parameters

NameFormatDescription
errnointCall error code, where 0 means success.
errorstring Error description, where "succ" means success.
dataarray-json Device resource information returned after the interface is successfully invoked; see data description list.
Data Description Table
NameFormatDescription
obj_inst_idintid of object instance
resarray-json res list
res description list
NameFormatDescription
res_idintresource id
valobjectresource idvalobjectValue of the resource read, bool, string, long, double type
Description

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

If obj_instance_id does not exist, resource_id msut not exist.

Request Example

GET http://api.heclouds.com/devices/nbiot?imei=**&obj_id=*** HTTP/1.1
api-key: WhI*************v1c=  //Must be MasterKey, because it involves personal privacy, use "*******" instead
Authorization: version=2018-10-31&res=products/23104&et=1554398783&method=sha1&sign=fsBwuj0udOpU3BLoHmpbFwyIo30=

返回示例

{
    "errno": 0,
    "error": "succ",
    "data": [{
            "obj_inst_id":123,
            "res":[
                    {
                    "res_id":1234,
                    "val": Object    //could be boolean、string、long、double
                    },
                    ………
                ]
            },
            ………
            ]
} //In the response message, errno represents the error code, and error represents the cause of the error.

< View data points

real-command-write device resource >

个搜索结果,搜索内容 “

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