Author Topic: Connecting to a device without using Discovery  (Read 14748 times)

Johan

  • Guest
Connecting to a device without using Discovery
« 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.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Connecting to a device without using Discovery
« Reply #1 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.

Johan

  • Guest
Re: Connecting to a device without using Discovery
« Reply #2 on: September 14, 2010, 03:17:31 PM »
Great, thanks for the quick reply!

 

Sitemap 1 2 3 4 5 6 7