Wireless Communication Library Support Forum
Frameworks => Bluetooth Framework => Topic started by: TcomGregg on January 11, 2009, 05:11:58 PM
-
Hi Mike
Is there a simpler way to check the address of the radio without Enum - can you just ask the adapter at an address if it is still there?
Thank You and Have a Great Day
Gregg
-
Good day!
It is easy to do:
1. You may use wclAPI component's OnChanged event to monitor when the hardware configuration is changed.
2. You may create wclBluetoothRadio object and query its address.
In both ways wclBluetoothRadio.GetAddress() function returns WCL_E_BLUETOOTH_API not availbale if the is no bluetooth API you need. Then you can compare the returned address (if the function returns WCL_E_SUCCESS) with requred address.