Activate a Bluetooth Device

Last Updated on : 2023-06-20 14:20:34download

Activate a Bluetooth device.

API address

POST: /v1.0/iot-03/device-registration/single-bluetooth/actions/active

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
device_idString trueThe device ID.
auth_keyString falseThe device auth_key.
bvString trueThe baseline version.
pvString trueThe protocol version.
svString trueThe software version.
etagString falseThe device ETag.
latString falseThe longitude.
lonString falseThe latitude.
langString falseThe language.
time_zoneString falseThe time zone.
time_zone_idString falseThe ID of the specified time zone.
optionsString falseThe extension options.
modulesString falseThe information about the module.
asset_idString trueThe asset ID.
uidString trueThe user ID.

Return parameter

Parameter nameTypeDescription
resultBleDeviceActiveRes

Description of result

Parameter nameTypeDescription
device_idStringThe device ID.
local_keyStringThe device local_key.

Request example

POST: /v1.0/iot-03/device-registration/single-bluetooth/actions/active
{ "uuid": "device_id", "auth_key": "xxx", "bv": "1.0" "sv": "1.0", "etag": "xx", "lat": "1.011", "lon": "1.011", "lang": "zh", "time_zone": "+8:00", "time_zone_id": "Asia/Shanghai", "options": "", "modules": "", "asset_id": "213" }

Return example

{
    "result": {
        "device_id": "******",
        "local_key": "******"
    },
    "t": 1591257455025,
    "success": true
}

Error code

For more information, see error code.