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

how to understand region? #1220

Closed
shaojun opened this issue Jan 23, 2025 · 1 comment
Closed

how to understand region? #1220

shaojun opened this issue Jan 23, 2025 · 1 comment

Comments

@shaojun
Copy link

shaojun commented Jan 23, 2025

my beacon devices (from a local manufactor) are all have the same UUID, like fda50693-a4e2-4fb1-afcf-c6eb07647825, and this is my beaconparser:

beaconManager.getBeaconParsers().add(new BeaconParser().
                    setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24"));

And I'll have many beacons placed in a big mall, so what does the region mean here? does each beacon mapped to a region?

@davidgyoung
Copy link
Member

Hi, @shaojun. For questions on how to use this library, please post them to StackOverflow.com. This forum is reserved for feature requests and bug reports.

Here's a quick tip: You should think of a region as a matching expression for one or more beacons. A region, like a beacon, can be expressed with multiple identifiers. but a region allows you to set some of the identifiers to be blank. Any identifiers in a region left blank (null) will match all identifiers. So if you all of your beacon shave the same UUID (first identifier), specify that UUID in the region's first identifier and leave all the other identifiers null. That way, the region will match all beacons with that UUID regardless of the other identifier values.

If you have followup questions please post on StackOverflow.com

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

No branches or pull requests

2 participants