我有一个使用 corebluetooth 框架实现 BLE 中心的 iOS 应用程序 该应用程序执行 ScanForPeripheralWithServices 以扫描正在广播的 BLE 外围设备 问题 - iOS 设备扫描的频率 - 这是可编程的吗?
最佳答案
简单地说:它不是可编程的,
我在某处读到 iPhone(假设)一次 1.28 秒的扫描最多可以找到五个设备,但只有 ios 负责扫描时间(如果您没有提供特定设备作为参数或限制)
扫描广告服务的外围设备。
- (void)scanForPeripheralsWithServices:(NSArray *)serviceUUIDs
options:(NSDictionary *)options
参数
服务 UUID
An array of CBUUID objects that the app is interested in. In this case, each CBUUID object represents the UUID of a service that a peripheral is advertising.
选项
An optional dictionary specifying options to customize the scan. For available options, see “Peripheral Scanning Options.”
关于iOS Corebluetooth 扫描速率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20842429/