Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequestBleDeviceOptions does not correctly expose the UUID filtering of web #459

Open
AlexApps99 opened this issue Dec 12, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@AlexApps99
Copy link

Is your feature request related to a problem? Please describe.
I want to filter for a device with multiple specific UUIDs, but specifying services will filter for UUID A or UUID B rather than UUID A and UUID B. If I also wanted this set of UUIDs to have a given name, through the name property, it would again be or rather than and.

Describe the solution you'd like
Change the API to better reflect the web API, maybe through another property on RequestBleDeviceOptions that maps closely to filters of the web Bluetooth API. This means that you can make multiple individual filters, each with a set of conditions.

Describe alternatives you've considered
It could be that this is impossible, due to limitations of the APIs on other platforms. I don't know.

Additional context
https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/requestDevice

@AlexApps99 AlexApps99 added the enhancement New feature or request label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant