Activate a Bluetooth Device

Last Updated on : 2021-07-16 07:59:19download

Activate a Bluetooth device.

API address

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

Request parameter

Description of body

Parameter name Type IN Required Description
device_id String true The device ID.
auth_key String false The device auth_key.
bv String true The baseline version.
pv String true The protocol version.
sv String true The software version.
etag String false The device ETag.
lat String false The longitude.
lon String false The latitude.
lang String false The language.
time_zone String false The time zone.
time_zone_id String false The ID of the specified time zone.
options String false The extension options.
modules String false The information about the module.
asset_id String true The asset ID.
uid String true The user ID.

Return parameter

Parameter name Type Description
result BleDeviceActiveRes

Description of result

Parameter name Type Description
device_id String The device ID.
local_key String The 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.