Connect to another Bluetooth device using the BeeTee app

I need to implement a self-service application in order to connect with all the Bluetooth devices to the iPhone. I know this is not possible with a CoreBluetooth framework.

I use the private API and add the DeviceManager and BluetoothManager header files to the private frames and download the BeeTee Project from here

This application launches and finds the entire bluetooth device next to me, but when I tried to connect to the device using this code:

[self.bluetoothManager connectDevice:bluetoothDevice];

and this one

[bluetoothDevice connect];

When a cell is selected, Both of the above codes require a connection, but the BTM returns this message:

BeeTee [5473: 60b] BTM: connection to the 0xffffffff service on the Nokia 500 device F4: xx: xx: xx: xx: xx with error 109

109? ?

, , ?

+4
2

, , , BluetoothManager.framework Apple. ( ) SPP Bluetooth . : .

, / Apple , , , BeeTee.

UPDATE: , :

BluetoothManager *bluetoothManager = //...
[bluetoothManager setDevicePairingEnabled:YES];
[bluetoothManager connectDevice:bluetoothDevice withServices:0x00002000];

+1
BluetoothManager *bluetoothManager = //...
[bluetoothManager setDevicePairingEnabled:YES];
[btManager setPincode:@"111111" forDevice:bluetoothDevice.deviceRef];
//where 111111 is your device PIN
[bluetoothManager connectDevice:bluetoothDevice withServices:0x00002000];
0

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


All Articles