google / eddystone

Specification for Eddystone, an open beacon format from Google
Apache License 2.0
3.08k stars 762 forks source link

Scan Eddystone beacons based on partial Namespace #164

Open parthrparekh93 opened 8 years ago

parthrparekh93 commented 8 years ago

We provide a filter "FEAA" for scanning only Eddystone beacons. I would like to know if it is possible to filter scans based on the first 2 bytes of the 10-byte namespace. For example if my Namespace is 0044ddaa2255663142ea and 004433ead1452653273. I would like to detect both of them as they begin with 0044.

How can I achieve this?

mashbridge commented 8 years ago

Use the "serviceDataMask" filter for the bits you're interested in:

https://developer.android.com/reference/android/bluetooth/le/ScanFilter.Builder.html#setServiceData(android.os.ParcelUuid, byte[], byte[])

parthrparekh93 commented 8 years ago

Hello, thanks for the answer but I forgot to mention that I am developing an IOS application.