Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: MrPaulCarpenter on December 12, 2018, 04:48:43 PM

Title: GetRemotePaired() not returning accurate results
Post by: MrPaulCarpenter on December 12, 2018, 04:48:43 PM
GetRemotePaired() not returning accurate results
(Using wclBluetoothFramework version 7.5.5.0, C# / .Net 4.6.1)

When using  wclRfCommClient, my application depends on GetRemotePaired() to determine if a PIN is successful

In my test example, I call GetRemotePaired(), and see that device is not paired.

 int err = Radio.GetRemotePaired(Address, out bool isPaired);
 
 Next :
 
  int err = Radio.RemotePair(Address);
 
  I see calls to
 
  Manager_OnPinRequest()
  and
  Manager_OnAuthenticationCompleted()
 
  I see that Client.State == csConnected
  I also confirm that I can send and receive data to/from the Bluetooth device
 
  Then  I again call
   
 
   int err = Radio.GetRemotePaired(Address, out bool isPaired);
   
   and isPaired is still false
Title: Re: GetRemotePaired() not returning accurate results
Post by: Mike Petrichenko on December 12, 2018, 07:28:01 PM
Hello,

Sorry for delay with the answer. We had to check this.

We tested Bluetooth Framework 7.5.9.0 and all works as expected. Have you tested it with BluetoothManager demo application?