• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bluetooth Control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Bluetooth Control
      • From: Andrew James <email@hidden>
References: 
 >Bluetooth Control (From: Andrew James <email@hidden>)

  • Prev by Date: Re: Path to desktop
  • Next by Date: Re: Bluetooth Control
  • Previous by thread: Re: Bluetooth Control
  • Next by thread: Re: Bluetooth Control
  • Index(es):
    • Date
    • Thread