简体   繁体   English

ios核心蓝牙配对到外部BLE设备

[英]ios Core BlueTooth Pairing to External BLE Device

I am making an BLE based application. 我正在制作一个基于BLE的应用程序。

As I know Bluetooth Pairing is handling ios internally. 据我所知,蓝牙配对在内部处理ios。

Is there any possiblity to get access over bluetooth pairing request in ios . 是否有可能通过ios中的蓝牙配对请求进行访问。 I am getting pairing request from external BLE Device but i am not able to know whether user is paired or cancelled. 我收到来自外部BLE设备的配对请求,但我不知道用户是配对还是取消。 Apps like TI SensorTag and Multitool apps are handling the pairing request when user clicks cancel then these apps disconnects the peripheral. 当用户单击“取消”,然后断开与外围设备的连接时,TI SensorTag和Multitool等应用程序将处理配对请求。

I am not getting any clue how they are handling the pairing. 我不知道他们如何处理配对。

Please help me in getting this solved. 请帮助我解决这个问题。

Thanks 谢谢

The BLE devices are more then likely handling the cancel on their side. BLE设备则更有可能在其一侧处理取消操作。 When you click cancel through iOS it does not pair and does not enable encryption. 当您通过iOS单击“取消”时,它不会配对并且不会启用加密。 At this point the BLE devices are probably issuing a disconnect because encryption has not been started. 此时,BLE设备可能正在发出断开连接,因为尚未开始加密。

The only time you will see that pairing message is when encryption is being requested. 您只有在请求加密时才会看到该配对消息。

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

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