startBLEScanBindDevice
版本要求:
DeviceKit≥2.1.6@ray-js/ray≥0.6.23
支持平台:
iOSAndroid
方法签名
startBLEScanBindDevice(params: )SDK 最低版本
- iOS
ThingSmartDeviceKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-devicekit - ≥ 5.2.0
描述
在指定时间内扫描已配网的设备,扫描结果通过【onBLEScanBindDevice】事件获取
参数
| 属性 | 类型 | 必填 | 说明 | SDK 最低版本 |
|---|---|---|---|---|
interval | number | 是 | 间隔扫描时间。如果<0,则返回错误 | — |
scanType | string | 是 | 【废弃】扫描不区分type 扫描类型 SINGLE -> "SINGLE" SINGLE_QR -> "SINGLE_QR" MESH -> "MESH" SIG_MESH -> "SIG_MESH" NORMAL -> "NORMAL" Thing_BEACON -> "Thing_BEACON" | — |
complete | () => void | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) | — |
success | () => void | 否 | 接口调用成功的回调函数 | — |
fail | (params: Object) => void | 否 | 接口调用失败的回调函数 | — |
fail 回调参数
| 属性 | 类型 | 说明 |
|---|---|---|
errorMsg | string | 错误信息 |
errorCode | string | number | 错误码 |
| 错误扩展 |
返回值
无