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

Query device details

Request format: GET

URL: http(s)://api.heclouds.com/devices/device_id

Note: device_id value needs to be replaced by device ID.

I only want to see examples!!!

Return Parameters

Parameter NameFormatDescription
errnointCall error code, where 0 means success.
errorstring Error description, where "succ" means success.
data jsonDevice dependent message returned after the interface is successfully invoked; see Data Description Table
Data Description Table
NameFormatDescription
idstringUnique ID assigned by the platform
onlineboolwhether LwM2M device is on line
protocolstringDevice access protocol (LwM2M)
titlestringDevice name
descstringngDevice description
create_timestringDevice creation time, Beijing time
obsvboolAutomatically subscribed or not
privateboolDevice privacy
binaryjsonDevice associate image or binary data; see binary description list for details.
tagsarray-stringDevice tag
observ_statusboolSubscription status, representing: after the device is on line and the platform releases the subscription command, whether all device resources are successful
locationjsonDevice location coordinate, represented by latitude and longitude key-value {“lon” xx “lat” xx}
auth_infostringDevice authorization information, corresponding to “sn” or “mac” parameter in the device registration interface
otherjsonOther custom information of the device, in the key-value pair format. See the example.
datastreamsarray-jsonJson array of data stream information of device, see Datastreams Description Table
binary description list
NameFormatDescription
indexstring Binary data index
atstring Upload time
sizeint Byte
descstring s
Datastreams Description Table
NameFormatDescription
idstring Data stream name
create_time string Data stream creation time, Beijing time
unitstring Unit
unit_symbolstring Unit symbol

Request Example

GET http://api.heclouds.com/devices/35****92 HTTP/1.1  //35****92为,Device ID randomly assigned to the platform
api-key: WhI*************v1c= //Must be MasterKey, because it involves personal privacy, use "*******" instead

Return example

{
    "errno": 0,
    "data": { //Device Information
        "private": false, 
        "create_time": "2019-04-24 14:54:29", //Device creation time
        "act_time": "Fri May 10 01:32:48 CST 2019",
        "obsv": true, //NB lwM2M protocol devices only have this field value
        "ack": false,
        "auth_info": {
            "188xxxxxxxx": "1xxxxxx4"
        },
        "imsi": "188832xxxx234",
        "last_ct": "Fri Jun 21 17:06:32 CST 2019",
        "title": "11",
        "tags": [],
        "obsv_st": false,
        "protocol": "LwM2M",
        "rg_id": "188832963901234",
        "imsi_old": [
            "188832963901234"
        ],
        "imsi_mt": "Fri May 10 01:32:48 CST 2019",
        "online": false,
        "location": {
            "lat": 0,
            "lon": 0
        },
        "id": "524166559",
        "datastreams":  //data_streams
         [   
            {
                "create_time": "2019-05-10 01:32:51",
                "uuid": "d2fd9428-45f3-45f9-bd17-7106432f22dd",
                "id": "9999_0_7"
            },
                   ],  //end data_streams
        "desc": ""
    }, //end data
    "error": "succ"
}

< Update device information

Batch query device information >

个搜索结果,搜索内容 “

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