question

ChrisMorschel-9549 avatar image
0 Votes"
ChrisMorschel-9549 asked RoyLi-MSFT edited

[UWP] Bluetooth set device to discoverable from code (HoloLens app)

Hi,
I have been unable to find a way to make my device discoverable for bluetooth pairing from inside my HoloLens 2 xaml app. A workaround has been to make the user open the settings app to accept incoming pair requests, but this seems like it should be possible from inside the app. Is there a way to set the device discoverability from UWP?

not-supported
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.

1 Answer

RobCaplan avatar image
0 Votes"
RobCaplan answered

Hi Chris,

HoloLens development questions are not currently supported on Q&A (but coming soon!). Arya and I have asked one of our HoloLens specialists to take a look at the similar question you posted on Stack Overflow.

On the Stack Overflow thread you said you were setting up an RFCOMM server, which shouldn't require pairing.

You might want to update that question with more details on your actual scenario and where exactly you're having trouble. Can you reproduce the problem on desktop or is it HoloLens specific: the code and manifest capabilities should be the same, but the HoloLens has a more limited Bluetooth stack than Desktop Windows so there may be some additional limitations to navigate.

Here are a few doc links that you may want to look at in the meantime:

--Rob



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.