admin管理员组文章数量:1292359
I am working on a SwiftUI project using CoreBluetooth to connect to a Ruptela BLE device. My goal is to establish a Bluetooth Low Energy (BLE) connection without any user interaction for entering a PIN, meaning the PIN should be passed programmatically if required.
is that visiable
I am working on a SwiftUI project using CoreBluetooth to connect to a Ruptela BLE device. My goal is to establish a Bluetooth Low Energy (BLE) connection without any user interaction for entering a PIN, meaning the PIN should be passed programmatically if required.
is that visiable
Share Improve this question asked Feb 13 at 12:15 Eskandar RushdiEskandar Rushdi 136 bronze badges1 Answer
Reset to default 0Unfortunately this s not possible with CoreBluetooth - iOS’s CoreBluetooth does not allow programmatically passing a PIN for BLE pairing. The pairing process is handled by the system which prompts the user when needed. To avoid this, maybe you can configure the Ruptela device to use "Just Works" pairing (no PIN required) if possible, or implement authentication within the app after connecting.
More info at the links below:-
- iPhone Bluetooth pairing without confirming passcode
- Programmatic Bluetooth PIN in iOS
本文标签: iosHow to Connect to BLE Device Without User PIN Input Using SwiftUI and CoreBluetoothStack Overflow
版权声明:本文标题:ios - How to Connect to BLE Device Without User PIN Input Using SwiftUI and CoreBluetooth? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741543534a2384460.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论