I am wondering if there is a way i can get an IOBluetoothDevice * object from a CBPeripheral * object because I am making an advanced bluetooth controller framework (Its going to be based on IOBluetooth) and Im using it so scan for Bluetooth Classic and Bluetooth Low Energy devices. Here are some of the problems:
IOBluetoothdoes allow you to search for both networks but for some reason its not showing up all of theBluetooth Low EnergyDevices thatCoreBluetoothis.If I use
CoreBluetoothto search forBluetooth Low EnergyDevices I won't be able to get the address which I require for later use.
So is there any way i can get an IOBluetoothDevice object from a CBPeripheral?
thanks :D
I found out that I can search through
/Library/Preferences/com.apple.bluetooth.plist > CoreBluetoothCachewhich just happens to contain the UUID and in its dictionaryDeviceAddress= the address ;).so I can get the UUID of a
CBPeripheralby using the methodand then looking it up in the property list
Then create a new IOBluetoothDevice with that address:
Its as easy as that :D