Is it possible to provide a BLE service on Mac OS X?
From the CoreBluetooth docs found here http://developer.apple.com/library/mac/#documentation/CoreBluetooth/Reference/CBCentralManager_Class/translated_content/CBCentralManager.html it looks like you can just scan for and connect to peripherals. I am looking to act as a perisperhal.
This is possible now with OS X Mavericks (10.9). The same CoreBluetooth CBPeripheralManager API for iOS is available on OS X.
An example can be found here.
If you look at the IOBluetooth and CoreBluetooth framework header files in Xcode, you'll note that CBCentralManager is there, but unlike iOS, CBPeripheralManager is not there.
So, on OS X, you are able to act as a Central but not as a Peripheral.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With