Author Topic: Checking to see if same radio before use  (Read 8403 times)


  • Guest
Checking to see if same radio before use
« 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

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Checking to see if same radio before use
« Reply #1 on: January 11, 2009, 05:41:56 PM »
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.


Sitemap 1 2 3 4 5 6 7