Android Beacon Library
Hi I'm trying to use Android Beacon Library (ABL) to access a MetaWear device as an iBeacon. I can't get ABL to detect my MetaWear device. I'm wondering what beacon standard MetaWear adheres to when you set the MetaWear into beacon mode. From ABL docs, they say that they automatically work with AltBeacon. When I search the web for "setBeaconLayout" and MetaWear I can't find any information.
What is the byte layout format for MetaWear's beacon?
// By default the AndroidBeaconLibrary will only find AltBeacons. If you wish to make it
// find a different type of beacon, you must specify the byte layout for that beacon's
// advertisement with a line like below. The example shows how to find a beacon with the
// same byte layout as AltBeacon but with a beaconTypeCode of 0xaabb. To find the proper
// layout expression for other beacon types, do a web search for "setBeaconLayout"
// including the quotes.
//
//beaconManager.getBeaconParsers().clear();
//beaconManager.getBeaconParsers().add(new BeaconParser().
// setBeaconLayout("m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25"));
This discussion has been closed.
Comments