OneNET IoT Platform Platform Introduction Introduction Manual Guidline for Device Development Guideline for Application Development
API
API Usage API List SDK MQTT LwM2M EDP Modbus TCP
HTTP Push

View bs_psk of Device

Request Method: GET

URL: http://iot.zong.com.pk:8000/nbiot/device/psk?imei=865820034287669&did=86582

http Header

Parameter Name Format Required Description
api-key string yes must be masterkey or apikey with access authority of the device

URL Request Parameter

Parameter Name Format Description
imei string request parameter in URL, value is device IMEI No.
did long request parameter in URL, value is device ID

Description

1. Only one of imei and did in request parameter can be chosen 
2. Compatible with historical NB device, view PSK of device, the backend generates the specified length PSK code by default and returns it

Return Parameter

Parameter Name Format Description
errno int code for call error, 0 indicates call is successful
error string error description, "succ" indicates call is successful
data json device related information returned after successful interface call, see data description table
data Description Table
Parameter Name Format Description
Psk string psk for device to connect guidance machine. This field is returned when NB protocol enables DTLS encryption. the field is not exist in other cases

Example of Return

{
"errno": 0,
"error":"succ",
"data":
{
"psk":"23ddafd3444"
    }
}

results matching ""

    No results matching ""