Skip to content

getDevices() returns an empty list on Windows 11 #242

@FLATT-Dev

Description

@FLATT-Dev

This code

const bluetooth = new Bluetooth({ deviceFound });
const device = await bluetooth.getDevices();

returns an empty list and this message in the console

[INFO] SimpleBLE: D:\a\webbluetooth\webbluetooth\SimpleBLE\simpleble\src\backends\windows\Utils.cpp:33 in initialize_winrt: CoGetApartmentType: cotype=-1, qualifier=0, result=800401F0
[INFO] SimpleBLE: D:\a\webbluetooth\webbluetooth\SimpleBLE\simpleble\src\backends\windows\Utils.cpp:41 in initialize_winrt: RoInitialize: result=0

The PC runs Windows 11 and has a built in Bluetooth adapter
Any ideas how to fix?
Thank you

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions