Connect to a Bluetooth device programmatically objective c

Can I connect to a Bluetooth device programmatically. Thus, the user cannot open the Bluetooth settings and select the device to which they need to connect. Note. The device you want to connect to will always have the same device name.

+5
source share
1 answer

Yes, if you use Core Bluetooth to detect all devices that can be detected. Then, if it matches the name, etc., then connect to it.

I wrapped around the core of Apple Core Bluetooth to simplify this.

https://github.com/steprescott/SCPCoreBluetoothManager

0
source

Source: https://habr.com/ru/post/1490913/


All Articles