Re: Newbie and stupid: Is there a way to be told when Bluetooth is enabled/disabled?
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com On 29 sept. 05, at 15:28, Luc Bergevin wrote: Hi, On 29/09/2005, at 6:17, Stephane Sudre wrote: The question is: you can call: available in: IOBluetoothUserLib.h _______________________________________________ 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: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... Isn't there a way to get the Bluetooth status more dynamically with a distributed notification, SystemConfiguration Callback or something? extern IOReturn IOBluetoothLocalDeviceGetPowerState(BluetoothHCIPowerState* powerState) AVAILABLE_BLUETOOTH_VERSION_1_1_AND_LATER; 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre