• Taro.onBluetoothDeviceFound(CALLBACK)
    • 示例代码

    Taro.onBluetoothDeviceFound(CALLBACK)

    使用方式同 wx.onBluetoothDeviceFound

    示例代码

    1. import Taro from '@tarojs/taro'
    2. Taro.onBluetoothDeviceFound(devices => {
    3. console.log(devices)
    4. console.log(devices[0].advertisData)
    5. })