Check device acc_psk
Request format: GET
URL: http(s)://api.heclouds.com/nbiot/device/accpsk
Url parameter
Parameter Name | Format | Required? | Description |
imei | string | Yes | URequest parameter in URL; its value is device IMEI. |
Return Parameters
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 |
Data Description Table
Name | Format | Description |
device_id | string | Unique ID assigned by the platform |
psk | string | psk for the device to be connected with the access machine; return the field when NB protocol activates DTLS encryption function; this field does not exist in other cases. |
Request Example
POST http://api.heclouds.com/devices HTTP/1.1
api-key: WhI*************v1c=
Content-Type: application/json
Return Example
{
"errno": 0,
"error": "succ",
"data": {
"psk":"23ddafd3444"
}
}