繁体   English   中英

可以在iOS设置中发现低功耗蓝牙广告

[英]Bluetooth Low Energy advertising to be discoverable in iOS Settings

我有一个使用CBPeripheralManager来实现外设的iOS应用。 我开始使用以下命令做广告:

 [self.peripheralManager startAdvertising:@{CBAdvertisementDataLocalNameKey : @"MY_DEVICE_NAME"}];

根据Apple的文档, https//developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CBPeripheralManager_Class/index.html#//apple_ref/occ/instm/CBPeripheralManager/startAdvertising

外围设备管理器对象仅支持两个键:CBAdvertisementDataLocalNameKey和CBAdvertisementDataServiceUUIDsKey

我的问题是我希望此外围设备在iOS设置的“设置”->“蓝牙”区域中可被发现。 目前,只能通过应用程序和CBCentralManager scanForPeripheralsWithServices API调用来发现它。 我是否需要添加数据服务以使其可通过iOS设置被发现?

在“设置”->“蓝牙”页面中找不到蓝牙低功耗设备。 这仅适用于蓝牙2.1 / 3.0设备,例如键盘和耳机/免提设备。

蓝牙低功耗外设只能由使用Core Bluetooth的应用程序发现。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM