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
The following (unstable) filters need to be added to RequestDeviceOptions:
Each of these filters can check:
dataPrefixmaskSpec:
https://webbluetoothcg.github.io/web-bluetooth/#dictdef-bluetoothlescanfilterinit
Example:
https://webbluetoothcg.github.io/web-bluetooth/#example-filter-by-manufacturer-service-data