iOS CoreBluetooth中的特征通知之间是否有最短时间限制?

iOS CoreBluetooth中的特征通知之间是否有最短时间限制?,ios,swift,bluetooth-lowenergy,core-bluetooth,Ios,Swift,Bluetooth Lowenergy,Core Bluetooth,我有一个iOS应用程序,可以连接到蓝牙外围设备。扫描、连接、服务/特征发现、读取、写入、通知正在正常工作 假设我已经实现了peripheral delegate函数didUpdateValue for characteristic,如下所示: 01 05 导入基础 导入核心蓝牙 类myPeripheral:NSObject,CBPeripheralDelegate{ func getTimeStamp()->字符串{ 让日期=日期() 让calendar=calendar.current 让d

我有一个iOS应用程序,可以连接到蓝牙外围设备。扫描、连接、服务/特征发现、读取、写入、通知正在正常工作

假设我已经实现了peripheral delegate函数
didUpdateValue for characteristic
,如下所示:

01
05
<代码>导入基础 导入核心蓝牙 类myPeripheral:NSObject,CBPeripheralDelegate{ func getTimeStamp()->字符串{ 让日期=日期() 让calendar=calendar.current 让dateFormatter=dateFormatter() dateFormatter.calendar=日历 dateFormatter.dateFormat=“HH:mm:ss:SSS” return dateFormatter.string(from:date) } 公共func外围设备(uPeripal:cbperipal,didUpdateValue for characteristic:CBCharacteristic,error:error?){ let value=characteristic.value.hexEncodedString() 让timeStamp=getTimeStamp() 如果错误==nil{ 打印(“\(时间戳)-新值:\(值)”) } 否则{ 打印(“失败”) } } } 在订阅特性之后,这基本上是按预期工作的。但是,有时外围设备会快速连续发送新的不同值(~1-3毫秒)。出于某种原因,在上面的实现中,只有最后一个值被打印两次

外围设备更新的特点如下:

01
05
我的应用程序的输出:

13:10:56:201 - New value: 05
13:10:56:203 - New value: 05
我知道外围设备正确地更新了这个特性,因为我们有一个android应用程序,它正在工作。我需要在我的应用程序中正确获取这两个更新值,有人知道吗