iOS 6 CoreBluetooth配对/遗忘(2个问题) [英] iOS 6 CoreBluetooth Pairing / Forgetting (2 questions)

查看:370
本文介绍了iOS 6 CoreBluetooth配对/遗忘(2个问题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个可绑定的(当我们连接时,我们被要求配对,请参阅问题2)我们制造的蓝牙4.0外围设备并为其编写了一个iOS应用程序。

We have a bondable (when we connect we are asked to Pair, see question 2) Bluetooth 4.0 peripheral that we have manufactured and have written an iOS app for.

在具有CoreBluetooth的iOS 6中是否可以从我们的应用程序中删除iOS蓝牙设置中的外围设备或受此限制只进入iOS设置/蓝牙/我们的外围设备和忘记此设备。

Is it possible in iOS 6 with CoreBluetooth to remove our peripheral from the iOS Bluetooth Settings from within our app or is this restricted to only going to iOS Settings / Bluetooth / Our Peripheral and "Forget this device".

我们要做的是当我们从我们的应用程序中删除我们的外围设备时,我们希望这个外围设备也可以从iOS蓝牙列表中删除。

What we are trying to do is when we remove our peripheral from within our app, we expect this peripheral to be removed from the iOS Bluetooth list as well.

我的第二个问题iOS SDK是否提供了一种方法来确定用户是否在配对请求警报中选择了配对或取消?截至目前,我们通过在连接设备时读取我们的服务/特征来确定用户按下的对。

My second question is, does iOS SDK provide a way to determine if a user has chosen "Pair" or "Cancel" on the Pairing request alert? As of now, we determine the user pressed pair by reading our services / characteristics when the device is connected.

推荐答案


  • 问题1

  • 不,我真的不这么认为。通过设置清除它是唯一可行的方法。

    No, I really dont think so. Clearing it through settings is the only possible way.


    • 问题2

    centralManager 委托对失败和成功连接的外围设备都有回调,所以我会听他们检查是否取消了用户: didConnectPeripheral didFailToConnectPeripheral

    The centralManager delegate has callbacks for both failed and successfully connected peripheral, so I would listen to them to check if user cancelled or not: didConnectPeripheral and didFailToConnectPeripheral

    这篇关于iOS 6 CoreBluetooth配对/遗忘(2个问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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