Author Topic: wclBluetoothDevice.GetPaired always return true  (Read 15736 times)

dartecs

  • Guest
wclBluetoothDevice.GetPaired always return true
« on: August 08, 2014, 02:04:25 PM »
I have the following code in one if my projects:

        private bool IsPaired(wcl.wclBluetoothRadio aRadio, wcl.wclBluetoothDevice aDevice)
        {
            bool paired = false;
            aDevice.GetPaired(aRadio, ref paired);
            return paired;
        }


Up to now I had used WCL Lite Version 6.10.5.0 and the above code worked fine. I would now like to make the switch to version 6.10.7.0 of WCL Lite but after I do that the above code always returns true, even if the device has not been paired yet! Is this a bug in wclBluetoothDevice.GetPaired?

dartecs

  • Guest
Re: wclBluetoothDevice.GetPaired always return true
« Reply #1 on: August 08, 2014, 02:15:50 PM »
Hmm, after some more testing I found that the problem seems to be not in the GetPaired but in the Pair method:

            if (!IsPaired(mRadio, mDevice))
                mDevice.Pair(mRadio, PairingCode);
            System.Diagnostics.Debug.Assert(IsPaired(mRadio, mDevice));

The assertion always fails in the above test code.


dartecs

  • Guest
Re: wclBluetoothDevice.GetPaired always return true
« Reply #2 on: August 08, 2014, 02:44:18 PM »
Just tried with the demo of latest version 6.13.2.0. With this version my program works again fine. So there seemed to be some bug in the Pair method of Version 6.7.

I will not have to decide wether to stick with old version 6.5 or renew my subscription and upgrade to 6.13.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: wclBluetoothDevice.GetPaired always return true
« Reply #3 on: August 08, 2014, 02:50:28 PM »
Hello,

Unfortunately 6.10 is very very old versions and I afraid I can not help with that. All I can do is just recomend to upgrade to the latest WCL version.

 

Sitemap 1 2 3 4 5 6 7