uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

IOS 蓝牙出现notifyBLECharacteristicValueChange()后在进行蓝牙操作出现断连

Open QwQuan opened this issue 1 year ago • 0 comments

问题描述

调用uni.notifyBLECharacteristicValueChange(OBJECT)大约1-10分钟不等后,调用蓝牙操作(writeBLECharacteristicValue(OBJECT), uni.notifyBLECharacteristicValueChange(OBJECT))没有马上进行回调,几秒后回调返回【10002 | no device】,然后蓝牙断开连接。

notifyBLECharacteristicValueChange后数据频率大约是每秒 30-80次回调

目前在iPhone15 pro(17.4.1)上稳定复现,iPhone11(17.4.1) 无该问题。

预期结果

notifyBLECharacteristicValueChange后能正常调用其他蓝牙操作

实际结果

notifyBLECharacteristicValueChange后调用其他蓝牙操作出现断连

发行平台:

[iOS ]

操作系统

[windows, macOS]

QwQuan avatar May 11 '24 10:05 QwQuan