Windows bluetooth autopairing or disable authentication

前端 未结 1 1670
走了就别回头了
走了就别回头了 2021-01-07 00:27

I need windows to automatically pair with bluetooth devices. I don\'t want the user to have to click anything on the windows side. The server will be physically located some

相关标签:
1条回答
  • 2021-01-07 00:56

    For the Microsoft Bluetooth stack: To support both traditional Bluetooth pairing as well as v2.1's Secure Simple Pairing use the BluetoothRegisterForAuthenticationEx function and in your callback function respond by calling BluetoothSendAuthenticationResponseEx.

    See more at BluetoothWin32Authentication 32feet.NET docs which describes the way to handle that in the 32feet.NET Bluetooth library for .NET, my doc Bluetooth in Windows 7, and MSDN e.g. BluetoothRegisterForAuthenticationEx etc.

    BTW Widcomm does not have a programatic way to respond to pairing (it does have a method to initiate pairing). BlueSoleil does have an API apparently.

    0 讨论(0)
提交回复
热议问题