1***@qq.com
1***@qq.com
  • 发布:2020-05-11 18:27
  • 更新:2020-05-11 18:27
  • 阅读:1060

v3模式下的蓝牙getBluetoothDevices和onBluetoothDeviceFound无限循环回调

分类:uni-app

非v3编译模式下,一切正常,都有序执行,
执行顺序:
openBluetoothAdapter => getBluetoothAdapterState => startBluetoothDevicesDiscovery => getBluetoothDevices => onBluetoothDeviceFound,其中getBluetoothDevices和onBluetoothDeviceFound来回执行查找设备。连接设备成功后 也通过stopBluetoothDevicesDiscovery 停止搜索设备了,在非v3编译模式下一切正常,在v3编译模式中会一直调用getBluetoothDevices 和 onBluetoothDeviceFound 两个方法,且即便使用了 stopBluetoothDevicesDiscovery 也无法停止查找,会一直调用这两个方法,导致手机因为无限调用这两个方法发烫严重,希望官方能查看问题

2020-05-11 18:27 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复