startBLEScanBindDevice
Requires:
DeviceKit≥2.1.6@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Method signature
startBLEScanBindDevice(params: )Minimum SDK versions
- iOS
ThingSmartDeviceKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-devicekit - ≥ 5.2.0
Description
Scan for provisioned devices within the specified time; results are obtained via the 【onBLEScanBindDevice】 event
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
interval | number | Yes | Scan interval. If < 0, return an error | — |
scanType | string | Yes | Deprecated: Scan does not distinguish type Scan types SINGLE -> "SINGLE" SINGLE_QR -> "SINGLE_QR" MESH -> "MESH" SIG_MESH -> "SIG_MESH" NORMAL -> "NORMAL" Thing_BEACON -> "Thing_BEACON" | — |
complete | () => void | No | Completion callback (executed on both success and failure) | — |
success | () => void | No | Callback on successful API call | — |
fail | (params: Object) => void | No | Failure callback | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None