Re: Newbie and stupid: Is there a way to be told when Bluetooth is enabled/disabled?
Re: Newbie and stupid: Is there a way to be told when Bluetooth is enabled/disabled?
- Subject: Re: Newbie and stupid: Is there a way to be told when Bluetooth is enabled/disabled?
- From: Stephane Sudre <email@hidden>
- Date: Thu, 29 Sep 2005 15:30:30 +0200
On 29 sept. 05, at 15:28, Luc Bergevin wrote:
Hi,
On 29/09/2005, at 6:17, Stephane Sudre wrote:
The question is:
Isn't there a way to get the Bluetooth status more dynamically with a
distributed notification, SystemConfiguration Callback or something?
you can call:
extern IOReturn
IOBluetoothLocalDeviceGetPowerState(BluetoothHCIPowerState*
powerState) AVAILABLE_BLUETOOTH_VERSION_1_1_AND_LATER;
available in:
IOBluetoothUserLib.h
I hope that's what you were asking...
Thanks, this removes some bad code but what I'm looking for is more
something to be informed from the outside when the status changes. I
would like to avoid polling stupidly.
_______________________________________________
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