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!!!
Parameter Name | Format | Description |
---|---|---|
errno | int | Call error code, where 0 means success. |
error | string | Error description, where "succ" means success. |
data | json | Device dependent message returned after the interface is successfully invoked; see Data Description Table |
Name | Format | Description |
---|---|---|
id | string | Unique ID assigned by the platform |
online | bool | whether LwM2M device is on line |
protocol | string | Device access protocol (LwM2M) |
title | string | Device name |
desc | string | ngDevice description |
create_time | string | Device creation time, Beijing time |
obsv | bool | Automatically subscribed or not |
private | bool | Device privacy |
binary | json | Device associate image or binary data; see binary description list for details. |
tags | array-string | Device tag |
observ_status | bool | Subscription status, representing: after the device is on line and the platform releases the subscription command, whether all device resources are successful |
location | json | Device location coordinate, represented by latitude and longitude key-value {“lon” xx “lat” xx} |
auth_info | string | Device authorization information, corresponding to “sn” or “mac” parameter in the device registration interface |
other | json | Other custom information of the device, in the key-value pair format. See the example. |
datastreams | array-json | Json array of data stream information of device, see Datastreams Description Table |
Name | Format | Description |
---|---|---|
index | string | Binary data index |
at | string | Upload time |
size | int | Byte |
desc | string | s |
Name | Format | Description |
---|---|---|
id | string | Data stream name |
create_time | string | Data stream creation time, Beijing time |
unit | string | Unit |
unit_symbol | string | Unit symbol |
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
{
"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"
}