I am using Eddystone-URL with Android Beacon Library. I put the compressed URL in the dataFileds of the Beacon but when I receive the signal, the dataFields are empty Why could this be happenning? attach here the transmiter's code:
try {
byte[] buf = UrlBeaconUrlCompressor.compress("http://www.google.com");
beacon = new Beacon.Builder()
.setId1("0000FEAA-0001-1000-8000-00805F9B34FB")
.setManufacturer(0xFEAA)
.setTxPower(-59)
.setDataFields(bytesToListOfLongs(buf))
.build();
} catch (MalformedURLException e) {
e.printStackTrace();
}
BeaconParser beaconParser = new BeaconParser()
.setBeaconLayout(BeaconParser.EDDYSTONE_URL_LAYOUT);
beaconTransmitter = new BeaconTransmitter(getApplicationContext(), beaconParser);
I decoded the DataFields before starting to transmit and I see well the URL but I am not receiving anything in this fields in the other smartphone.