Re: how to know if this computer is BT enabled ?
Re: how to know if this computer is BT enabled ?
- Subject: Re: how to know if this computer is BT enabled ?
- From: Marco Pontil <email@hidden>
- Date: Mon, 12 Jul 2004 12:10:51 -0700
Aurilien,
You should also consider that the module can be powered off,
IOBluetoothLocalDeviceAvailable only tells you if the device is
available. In the same header, few lines below there is:
IOBluetoothLocalDeviceGetPowerState(BluetoothHCIPowerState* powerState).
This will tell you if the device is on or off (or if it supports power
switching at all, if it does not you should assume it is on).
... Marco
On Jul 12, 2004, at 11:41 AM, Aurilien Hugeli wrote:
thanks guys, i should have opened the headers instead of the doc !
Le 12 juil. 04, ` 19:26, Marco Pontil a icrit :
From IOBluetoothUserLib.h
/
/---------------------------------------------------------------------
-
----------------------------------------------------
/*! @function IOBluetoothLocalDeviceAvailable
@abstract Determines if a bluetooth device is available on a local
machine or not.
@result A Boolean value. TRUE if a Bluetooth device is connected to
the local machine, FALSE otherwise.
@discussion Determines if a bluetooth device is available on a local
machine or not.
*/
extern Boolean IOBluetoothLocalDeviceAvailable();
On Jul 12, 2004, at 9:58 AM, Aurilien Hugeli wrote:
hi !
i'm creating a BT enabled application and i need to disable most
controls if the machine is not BT enabled (has no internal BT dongle
or USB dongle...)
is there a *simple* API to know that ? i would prefer avoiding using
low level stuff... my only idea is to look for a device called
"cu.Bluetooth-Modem" in /dev/ but i find it too hacky...
thanks !
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.