Re: Bluetooth Switched On - Notification/Callback
Re: Bluetooth Switched On - Notification/Callback
- Subject: Re: Bluetooth Switched On - Notification/Callback
- From: Alexander Traud <email@hidden>
- Date: Fri, 28 Apr 2006 23:25:47 +0200
> BOOL bluetoothIsOn (void)
> {
> BluetoothHCIPowerState state;
> IOBluetoothLocalDeviceGetPowerState(&state);
> return ( state == kBluetoothHCIPowerStateON );
> }
For those who love compatibility...make sure to check availability of this
function. I was introduced somewhere in Mac OS X v10.2.
IOKit is not that difficult. Just a bit difficult to learn and understand.
_______________________________________________
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