Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: Johan on September 14, 2010, 12:43:11 PM

Title: Connecting to a device without using Discovery
Post by: Johan on September 14, 2010, 12:43:11 PM
I have a bluetooth radio in the pc and a bluetooth device which I want to pair it with, I have the mac adress for both.
Can I create a TwclBluetoothDevice object and pair them directly somehow or do I have to use TwclBluetoothDiscovery to find the device first?

I have an internal bluetooth radio in the pc which uses Microsoft API, and an external USB bluetooth radio from Ezurio which uses Widcomm API,
and the Ezurio one seems to ignore the timeout value when calling the Discovery method of TwclBluetoothDiscovery and always takes 10 seconds,
so I would like to avoid having to use Discovery.
Title: Re: Connecting to a device without using Discovery
Post by: Mike Petrichenko on September 14, 2010, 12:45:55 PM
Hi,

1. Yes you can do it. Take a look on BluetoothDiscovery demo how it creates BluetoothDevice object when you click Pair or Enum services buttons. In few words: create object and assign device's address to Address property of the object. Then you can pair with it without discovering.

2. Yes, you are right. WidComm does not support discovering timeout and ignores that value.
Title: Re: Connecting to a device without using Discovery
Post by: Johan on September 14, 2010, 03:17:31 PM
Great, thanks for the quick reply!