Re: Bluetooth Control
Re: Bluetooth Control
- Subject: Re: Bluetooth Control
- From: Jacob Engstrand <email@hidden>
- Date: Tue, 10 Jul 2007 12:17:58 +0200
Yes, BT docs are not the best...
If you by "enabled" mean to check if BT is available at all, you can
start by calling
IOBluetoothLocalDeviceAvailable()
If you by "enabled" mean to check if there are any paired BT devices,
you can try calling
IOBluetoothPairedDevices() or IOBluetoothFavoriteDevices()
If you by "enabled" mean to check if there are any paired BT devices
near your computer that also have BT enabled, you can try looping
over the paired devices and calling
-openConnection
Hope this helps.
jak
2 jul 2007 kl. 05.34 skrev Andrew James:
I have been looking around on google and such, but can not find any
code relating to controlling the bluetooth device.
I can find code to program for bluetooth, but all im looking for is
a way to get its state(enabled/disabled), and change its state.
Any ideas?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden