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