I have had to deal with the same issues as Rick. I have the following everywhere I need to import the CoreBluetooth header files. #ifdef __OSX_PLATFORM__ # import <IOBluetooth/IOBluetooth.h> #else # import <CoreBluetooth/CoreBluetooth.h> #endif I don't understand why I can't just import CoreBluetooth.h on both platforms since all I want is BLE. -- dave On May 2, 2013, at 1:00 PM, Joakim Fernstad <jfernstad@stratos.com> wrote:
CoreBluetooth is only for BLE and it exist for OS X as well as for iOS. It's the same interface for both platforms.
IOBluetooth is for 'regular' Bluetooth which is not allowed (unless you do MFI) for iOS and hence only exist for OS X.
Joakim
-----Original Message----- From: bluetooth-dev-bounces+jfernstad=stratos.com@lists.apple.com [mailto:bluetooth-dev-bounces+jfernstad=stratos.com@lists.apple.com] On Behalf Of Rick Mann Sent: Thursday, May 02, 2013 12:11 PM To: bluetooth-dev@lists.apple.com Bluetooth Subject: CoreBluetooth on OS X
Why is it IOBluetooth on OS X and note CoreBluetooth? For the longest time, sharing Quartz 2D code between iOS and OS X was a pain, because you had to include different header files. Now I find it's the same with Core Bluetooth.
-- Rick
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/jfernstad%40stratos.co...
This email sent to jfernstad@stratos.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/dave-ble%40greylogic.c...
This email sent to dave-ble@greylogic.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com