BLE send passkey programmatically [closed]

社会主义新天地 提交于 2020-01-14 05:51:10

问题


When i connect my device to my peripheral, he asks me a passkey (a pop-up is shown on the device). I want to send this passkey programmatically during the connection.

I'm using CBCentralManager but I can't find a way to send it.

Any suggestions?


回答1:


You can't do this. This is part of the security model. If your BLE peripheral specifies that encryption is required to access one of its characteristics then pairing is required. The passkey is collected by iOS, not your application, and your application does not have any access to the passkey or the pairing/bonding process



来源:https://stackoverflow.com/questions/23603083/ble-send-passkey-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!