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

# Register Device Request Method: POST

URL: http://iot.zong.com.pk:8000/register_de

URL Parameter

Parameter Name Format Required Description
register_code string yes registration code, unique for product

http bdoy Parameter

Parameter Name Format Required Description
sn string optional (mac or sn) user-defined product serial number, maximum length is 512
mac string optional (mac or sn) user-defined mac address, maximum length is 32
title string no device name, maximum length is 32, if null, platform will default to assign the device name "auto_register"

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
device_id string device ID
key string apikey with access unique for the device

Example of Request body

{
    "sn": "1o8oy2oionadf",
    "title": "test_device"
}

Example of Return

{
    "errno": 0,
    "data": {
        "device_id": "35270468",
        "key": "=BH7aIa62iJH73t4ZwIory3ne=8="
    },
    "error": "succ"
}

results matching ""

    No results matching ""