Share via

`BluetoothLEConnectionPhy` class and `BluetoothLEConnectionParameters` class not found in name space `winrt::Windows::Devices::Bluetooth`

Balrog16 21 Reputation points
2022-02-15T05:55:25.4+00:00

What I am trying to do?

Use
BluetoothLEConnectionParameters
class which as per the documentation link says is part of the namespace
winrt::Windows::Devices::Bluetooth
.

What happened?

I get errors saying that this is an undeclared identifier, and I see the same issue with
BluetoothLEConnectionPhy

Developer technologies | Universal Windows Platform (UWP)

Answer accepted by question author

Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,871 Reputation points
2022-02-15T08:42:47.357+00:00

Hello,
Welcome to Microsoft Q&A!

BluetoothLEConnectionParametersclass not found in name spacewinrt::Windows::Devices::Bluetooth`

Derive from document BluetoothLEConnectionParameters introduced in 10.0.22000.0, so it only work within Windows 11 OS. If you use this api please develop within Windows 11 environment.

Thank you.


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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