Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bluetooth Low Energy (BLE) Service - Mac OS X

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.

like image 888
sandeepmistry Avatar asked Jan 29 '13 01:01

sandeepmistry


2 Answers

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.

like image 183
sandeepmistry Avatar answered Nov 15 '22 18:11

sandeepmistry


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.

like image 40
Bob Kressin Avatar answered Nov 15 '22 17:11

Bob Kressin