Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you pair a bluetooth LE device in an iOS app

Can you pair a bluetooth LE device in an iOS app, i.e. not via Settings. Trying to make it easier on the user to pair with a specific device.

If so how?

like image 207
David Avatar asked Aug 12 '14 01:08

David


1 Answers

You don't pair Bluetooth LE devices through system settings. Generally you don't pair with Bluetooth Low Energy devices at all. The only time that pairing is required is when the device has an attribute that is marked as encryption required - attempting to read this attribute will trigger a pairing process, but before you can read you need to discover and connect to the device.

Discovery and connection is handled by the Core-Bluetooth framework.

The Core Bluetooth Programming Guide goes through the steps required to use a CBCentralManager to discover and connect to a BLE peripheral.

like image 197
Paulw11 Avatar answered Oct 08 '22 17:10

Paulw11



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!