Skip to content

Add advertisement filters to requestDevice #1

@thegecko

Description

@thegecko

The following (unstable) filters need to be added to RequestDeviceOptions:

  • manufacturerData
  • serviceData

Each of these filters can check:

  • if an key exists in the advert
  • that a value starts with a certain value using dataPrefix
  • that a certain byte array exists in the value using mask

Spec:

https://webbluetoothcg.github.io/web-bluetooth/#dictdef-bluetoothlescanfilterinit

Example:

https://webbluetoothcg.github.io/web-bluetooth/#example-filter-by-manufacturer-service-data

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions