- Taro.onBluetoothDeviceFound(CALLBACK)
- 示例代码
- 示例代码
Taro.onBluetoothDeviceFound(CALLBACK)
使用方式同 wx.onBluetoothDeviceFound
。
示例代码
import Taro from '@tarojs/taro'
Taro.onBluetoothDeviceFound(devices => {
console.log(devices)
console.log(devices[0].advertisData)
})