Query device activation result based on network distribution token

Last Updated on : 2023-06-20 15:21:19download

Query the device activation result based on the network configuration token.

API address

GET: /v1.1/iot-03/device-registration/tokens/{token}

Request parameter

Parameter nameTypeINRequiredDescription
tokenStringuritrueNetwork Token

Return parameter

Parameter nameTypeDescription
resultDeviceActiveRes

Description of result

Parameter nameTypeDescription
success_devicesListList of successful device network configuration
error_devicesListDevice network configuration failure list

Description of error_devices

Parameter nameTypeDescription
idStringDevice ID
nameStringDevice Name
error_codeStringFailed error code
error_msgStringFailure description

Description of success_devices

Parameter nameTypeDescription
idStringDevice ID
nameStringDevice Name
product_idStringProduct ID to which the device belongs
lonStringLongitude
latStringLatitude
ipStringDevice configuration network IP
onlineBooleanDevice online status
uuidStringDevice uuid

Request example

GET: /v1.1/iot-03/device-registration/tokens/xxxx

Return example

{
    "result": {
        "success_devices": [
            {
                "product_id": "sfclyxhrfnys****",
                "name": "ASUS",
                "online": true,
                "id": "6c4b088a4116ae16c****"
            }
        ],
        "error_devices": [
        ]
    },
    "t": 1591872112140,
    "success": true
}

Error code

For more information, see error code.