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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

Unfortunately 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