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

Offline Johan

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
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: 3053
  • Karma: 1000
    • Soft Service Company
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.

Offline Johan

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
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 8 9