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

Edit acc_psk

Request Method: PUT

URL:http://iot.zong.com.pk:8000/nbiot/device/accpsk?imei=865820034287669

http Header

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

URL Request Parameter

Parameter Name Format Required Description
imei string yes request parameter in URL, value is device IMEI No.

http body Request Parameter

Parameter Name Format Required Description
key string yes edit PSK for connecting access machine, 8-16 bytes long, composed of letters or numbers

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

Example of Request

POST http://iot.zong.com.pk:8000/devices HTTP/1.1
api-key: WhI*************v1c=
Content-Type: application/json
Host: iot.zong.com.pk:8000

Example of http Request Parameter

{
    "key":"dafdfdsafd" 
}

Example of Return

{
    "errno": 0,
    "error": "succ"
}

results matching ""

    No results matching ""