I have an Eddystone, and I want to get accelerometer values but I I don't know how to proceed... I saw so we could get data from beacon with
beacon.getExtraDataFields()
but in my case the returned value is empty even I activated acceleromater emission in my Eddistone So I saw this post, : Getting packet data transferred from iBeacon android
but my returned value is like this : c03be53 and I don't know what does it mean... Could you help me to retrieve acceleromater data?
Here's my code :
ArrayList<BeaconParser> beaconParsers = new ArrayList<BeaconParser>();
beaconParsers.add(new BeaconParser().setBeaconLayout(EDDYSTONE_UID_LAYOUT));
Beacon beacon = null;
for (BeaconParser parser : beaconParsers) {
beacon = parser.fromScanData(scanRecord,
rssi, device);
if (beacon != null) {
if (beacon.getServiceUuid() == 0xfeaa) {
// This is Eddystone, which uses a service Uuid of 0xfeaa
Identifier eddystoneNamespaceId = beacon.getId1();
Identifier eddystoneInstanceId = beacon.getId2();
WirelessDevice wirelessDevice = new WirelessDevice(null, beacon.getRssi(), null, eddystoneNamespaceId.toString());
mainActivity.addDevice(wirelessDevice);
byte[] bytes = parser.getBeaconAdvertisementData(beacon);
Thank's