WAI
Status Update
Comments
ad...@google.com <ad...@google.com> #2
We have passed this to the development team and will update this issue with more information as it becomes available.
jp...@google.com <jp...@google.com> #3
Hi Ryan,
If you need to put complicated things into your advertise data, and want some form of pattern matching, service data, or manufacturer specific data is a way to go.
If you need to put complicated things into your advertise data, and want some form of pattern matching, service data, or manufacturer specific data is a way to go.
Description
So in 8.1 Bluetooth scans won't return results when the screen off if you are using an un-filtered scan. However, I feel the current ScanFilter class is too restrictive. I'd like to be able to use regex for the deviceName, or deviceAddress fields. Obviously, a generic wildcard of .* wouldn't be allowed, but something like mydevice.* should be fine. This would still filter out a lot of devices, but also to allow more flexibility. For instance, our products use a name of the product name itself, together with it's serial number. If we're scanning, we won't necessarily know the serial number of the device. And adding a billion scan filters to account for all possible variations isn't very practical either. I've also found that different devices return different values for the device name (some use underscores vs spaces, some lowercase the name, etc), which is why I never used the built in ScanFilter class.