Re: CoreBluetooth on OS X
Re: CoreBluetooth on OS X
- Subject: Re: CoreBluetooth on OS X
- From: email@hidden
- Date: Thu, 02 May 2013 13:09:17 -0700
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 <email@hidden> 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=email@hidden [mailto:bluetooth-dev-bounces+jfernstad=email@hidden] On Behalf Of Rick Mann
> Sent: Thursday, May 02, 2013 12:11 PM
> To: email@hidden 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Bluetooth-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden