check the device_ PSK of BS
Request format: GET
URL: http(s)://api.heclouds.com/nbiot/device/psk
Url parameter
Parameter Name | Format | Required? | Description |
imei | string | Yes | Request parameter in URL; its value is device IMEI. |
did | long | Yes | Request parameter in URL; its value is device ID. |
Description
- Only one of imei and did in the request parameter can be selected;
- Compatible with historical NB device; check PSK rear-end of the historical device, and generate an inventory by default and return.
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 |
psk | string | psk for the device to be connected with the bootstrap; return the field when NB protocol activates DTLS encryption function; this field does not exist in other cases. |
Return Example
{
"errno": 0,
"error":"succ",
"data":
{
"psk":"23ddafd3444"
}
}