What determines the parameter DevicePairingRequestedEventArgs in \Windows-universal-samples-master\Samples\DeviceEnumerationAndPairing

Zhiguo Hu 1 Reputation point
2020-07-27T06:36:48.883+00:00

What determines the parameters DevicePairingRequestedEventArgs in \Windows-universal-samples-master\Samples\DeviceEnumerationAndPairing ?

I want to custom pair BLE device which with static PIN code, but the parameter( args.PairingKind) from PairingRequestedHandler always be the value "ConfirmOnly",
and the value I expected is "providepin" or "providepasswordcredential" that I can input PIN code.

What determines this parameter ? The master BLE app or the BLE device to be paired ?

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,866 Reputation points
    2020-07-27T07:35:42.773+00:00

    Hi, ZhiguoHu
    Welcome to Microsoft Q&A

    What determines this parameter ?

    For this problem you could check DeviceEnumerationAndPairing code sample Scenario9 CustomPairDevice, if you have specific pairingKindsSupported for PairAsync method where in
    line 136. And above will determines args.PairingKind parameter.

    The master BLE app or the BLE device to be paired ?

    It can be paired for BLE device. you could use above sample and edit device selector to Bluetooth LE. For BLE app, may you need provide more info about it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.