Author Topic: [C++] CwclBluetoothDevice, Pair problem  (Read 16514 times)

AramMoon

  • Guest
[C++] CwclBluetoothDevice, Pair problem
« on: November 24, 2015, 12:02:49 PM »
 I tried pairing without Discovery.

This is work well Window 8, 10, but not working Window 7.

m_pDevice->SetAddress(MACAddress);
m_pDevice->Pair(*m_pRadio);


Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: [C++] CwclBluetoothDevice, Pair problem
« Reply #1 on: November 24, 2015, 12:14:58 PM »
Hello,

Can you give me more information? What does not work exactly?

AramMoon

  • Guest
Re: [C++] CwclBluetoothDevice, Pair problem
« Reply #2 on: November 26, 2015, 01:55:00 PM »
I'm using like below.
   
   __hook(&CwclBluetoothDevice::OnPINRequest, m_pDevice, &BluetoothDll::OnPINRequest);
   __hook(&CwclBluetoothDevice::OnNumericComparison, m_pDevice, &BluetoothDll::OnComparison);
   __hook(&CwclBluetoothDevice::OnPasskeyNotification, m_pDevice, &BluetoothDll::OnPasskeyNotify);
   __hook(&CwclBluetoothDevice::OnPasskey, m_pDevice, &BluetoothDll::OnPasskey);
   m_pDevice->SetAddress(pszString);
   int iRes = m_pDevice->Pair(*m_pRadio); ==> Here I will not go to the next step.
                                                                       Related hook message does not come across.
   __unhook(&CwclBluetoothDevice::OnPINRequest, m_pDevice, &BluetoothDll::OnPINRequest);
   __unhook(&CwclBluetoothDevice::OnNumericComparison, m_pDevice, &BluetoothDll::OnComparison);
   __unhook(&CwclBluetoothDevice::OnPasskeyNotification, m_pDevice, &BluetoothDll::OnPasskeyNotify);
   __unhook(&CwclBluetoothDevice::OnPasskey, m_pDevice, &BluetoothDll::OnPasskey);

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: [C++] CwclBluetoothDevice, Pair problem
« Reply #3 on: November 26, 2015, 05:12:09 PM »
Hm, it is really strange. Is there any way I can take a look om your system through TeamViewer?

 

Sitemap 1 2 3 4 5 6 7