iOS Corebluetooth 扫描速率

标签 ios core-bluetooth

我有一个使用 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/

相关文章:

ios - 当选择 ScrollView subview 时在 subview 位置滚动

ios - 为什么我的 UITableView 不使用单元格原型(prototype)?

iOS - CoreBluetooth didDiscoverPeripheral 仅调用一次

xamarin.ios - xamarin 支持 iOS 的 coreBluetooth 吗?

java - 初始化二维数组

ios - 子类化静态库中的类

ios - 在 Swift for Mac 上,BLE 的数据类型转换

ios - iOS 中 32 位 UUID 服务的后台扫描

ios - 在 iOS 7.1 中强制退出后,核心 BLE 是否在后台运行?或者只是 iBeacon?

ios - 类的导出实例未分配