question

AP-2411 avatar image
0 Votes"
AP-2411 asked AryaDing-MSFT commented

BLE LESC fails



Hi!
We're developing an app which connects to BLE devices for different purposes.
We've successfully enabled MITM, but are having problems enabling the LESC option, which is part of the BT v4.2 as I understand it.

When this is enabled, our connection attempts return with the Failed status response. As far as I can tell when exploring online, windows 10 did not support the LESC option for BT a few years back, see here . Does anyone know if this is still the case?

We use the UWP, Windows.Devices.Bluetooth namespace for the runtime API to use our BT devices, and specifically we use the pairasync method to form the connections/ pairing/ bonding, with the relevant enumerations, obviouslly.

Does anyone know if this issue has been fixed, and if so, where can I find an example code?

Thanks!

windows-uwp
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AP-2411 Do you have any progress? If the question has been resolved, you could mark useful answers, which will help others that facing same issue.

0 Votes 0 ·

Hi!
Not yet, I'll run the test shortly and get back to you with an answer.

Thanks!

0 Votes 0 ·

Looking forward to your good news.

0 Votes 0 ·

1 Answer

AryaDing-MSFT avatar image
0 Votes"
AryaDing-MSFT answered

Hi,

Welcome to Microsoft Q&A!

Starting from Windows 10 (Version 1803), Windows supports Secure Connections. Therefore, you could use the Windows 10 (Version 1803) or higher version to do BLE LESC. Besides, you could refer to the Scenario1 of MicroSoft Sample-BluetoothLE to do this, which uses a DeviceWatcher to enumerate nearby BLE device and display them in a listview, so that the user could select a device and pair it.



If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.