Skip to content Skip to sidebar Skip to footer

Transmit An Eddystone Beacon With Name Using Altbeacon Library

I use the following code transmiting as Eddystone using my Android device; try { byte[] urlBytes = UrlBeaconUrlCompressor.compress('http://www.****.com');

Solution 1:

It is generally not possible to add a Bluetooth name to a beacon advertisement, as there is simply not enough room in the limited data packet size of a BLE advertisement.

The field on the Beacon has no effect on transmissions. It is only populated when scanning for beacons. When scanning, the data comes from a separate packet called the scan response. For practical purposes it is read only.

It is possible to change a phone's BLE name that appears in the phone's own scan response. However, changing this name affects not just beacon transmissions but all Bluetooth operations on the phone. This is yet another reason that the library's BeaconTransmitter does not change this name. You can do so youself, however, by calling the setName method on Android's BluetoothAdapter class.

Post a Comment for "Transmit An Eddystone Beacon With Name Using Altbeacon Library"