RequestBleDeviceOptions
does not correctly expose the UUID filtering of web
#459
Labels
enhancement
New feature or request
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 thename
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 tofilters
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
The text was updated successfully, but these errors were encountered: