bluetooth-le icon indicating copy to clipboard operation
bluetooth-le copied to clipboard

`RequestBleDeviceOptions` does not correctly expose the UUID filtering of web

Open AlexApps99 opened this issue 3 years ago • 0 comments

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 avatar Dec 12 '22 22:12 AlexApps99