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

Add advertisement filters to requestDevice #1

Open
thegecko opened this issue Jan 3, 2018 · 0 comments
Open

Add advertisement filters to requestDevice #1

thegecko opened this issue Jan 3, 2018 · 0 comments

Comments

@thegecko
Copy link
Owner

thegecko commented Jan 3, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant