Skip to content

Adding simple manufacturer id filtering support #544

Description

@beaufortfrancois

Adding manufacturer id filtering support would help some web developers today.

For info, the simple manufacturerId filter was removed in favor of a more sophisticated one long time ago but I believe it may worth exploring having both.
I have a simple CL that works just fine at https://chromium-review.googlesource.com/c/chromium/src/+/2825891. What do you folks think? @reillyeon @scheib

const device = await navigator.bluetooth.requestDevice({ filters: [{ manufacturerId: 0x00e0 }] });

Side note: While I was playing with it on macOS, I've noticed there was only one unique manufacturer data key (the last one set in advertisement flags) while other platforms support multiple ones as described in the Bluetooth spec. We may want to rethink manufacturerData then as it allows several ones today in the spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions