Skip to content

Instantly share code, notes, and snippets.

@antonshkurenko
Last active August 29, 2015 14:23
Show Gist options
  • Save antonshkurenko/257d3bd06af0f7b1543b to your computer and use it in GitHub Desktop.
Save antonshkurenko/257d3bd06af0f7b1543b to your computer and use it in GitHub Desktop.
//bytes array will be something like 0201061aff4c000215a33c91
//we need symbols on "4c00" position
//for black Stick'n'find beacons:
beaconManager.getBeaconParsers().add(new BeaconParser()
.setBeaconLayout("m:2-3=4c00,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25"));
//for white beacons
beaconManager.getBeaconParsers().add(new BeaconParser()
.setBeaconLayout("m:2-3=0418,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25"));
/*
//for Kontakt.io beacons
beaconManager.getBeaconParsers().add(new BeaconParser()
.setBeaconLayout("m:2-3=????,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25"));
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment