可在iOS设置中发现蓝牙低功耗广告 [英] Bluetooth Low Energy advertising to be discoverable in iOS Settings

查看:182
本文介绍了可在iOS设置中发现蓝牙低功耗广告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iOS应用程序,它使用CBPeripheralManager来实现外围设备。
我开始使用以下命令做广告:

I have an iOS app which is using CBPeripheralManager to implement a peripheral. I start advertising with the command:

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

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

According to the Apple docuentation, https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CBPeripheralManager_Class/index.html#//apple_ref/occ/instm/CBPeripheralManager/startAdvertising:


只有两个外围管理器对象支持密钥:CBAdvertisementDataLocalNameKey和CBAdvertisementDataServiceUUIDsKey

only two of the keys are supported for peripheral manager objects: CBAdvertisementDataLocalNameKey and CBAdvertisementDataServiceUUIDsKey

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

My issue is that I want this peripheral to be discoverable in the Settings -> Bluetooth area of iOS settings. At present it is only discoverable via an app and the CBCentralManager scanForPeripheralsWithServices API call. Do I need to add a data service to make it discoverable via iOS settings ?

推荐答案

蓝牙低功耗设备是在设置 - >蓝牙页面中无法识别。这仅适用于蓝牙2.1 / 3.0设备,如键盘和耳机/免提设备。

Bluetooth Low Energy devices are not discoverable in the Settings->Bluetooth page. This is only for Bluetooth 2.1/3.0 devices such as keyboards and headsets/handsfree devices.

只有使用Core Bluetooth的应用才能发现蓝牙低功耗外设。

A Bluetooth Low Energy peripheral is only discoverable by an app using Core Bluetooth.

这篇关于可在iOS设置中发现蓝牙低功耗广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆