目录
兼容性:企业微信
停止搜寻附近的蓝牙外围设备。
若已经找到需要的蓝牙设备并不需要继续搜索时,建议调用该接口停止蓝牙搜索。
ww.stopBluetoothDevicesDiscovery()
| 属性 | 类型 | 必填 | 说明 | |
|---|---|---|---|---|
| success | Function | 否 | 成功回调 | |
| fail | Function | 否 | 失败回调 | |
| cancel | Function | 否 | 取消回调 | |
| complete | Function | 否 | 完成回调 |
Promise<Object>
| 属性 | 类型 | 必填 | 说明 | |
|---|---|---|---|---|
| errMsg | string | 是 | 通用错误信息 | |
| errCode | number | 是 | 通用错误码 |
wx.stopBluetoothDevicesDiscovery({
success: function (res) {
console.log(res)
}
})
