iOS 6 CoreBluetooth Pairing / Forgetting (2 questions)

前端 未结 2 1752
粉色の甜心
粉色の甜心 2020-12-28 17:43

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.

<
相关标签:
2条回答
  • 2020-12-28 17:47

    When you click 'cancel' on the bonding dialog iOS will call the delegate method 'centralManagerDidUpdateState' with the state being 'CBCentralManagerResetting'. If you click pair then the command will proceed normally.

    0 讨论(0)
  • 2020-12-28 18:02
    • Question 1

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

    • Question 2

    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

    0 讨论(0)
提交回复
热议问题