public final class IBeaconManufacturerData
extends java.lang.Object
0 4C - Byte 1 (LSB) of Company identifier code 1 00 - Byte 0 (MSB) of Company identifier code (0x004C == Apple) 2 02 - Byte 0 of iBeacon advertisement indicator 3 15 - Byte 1 of iBeacon advertisement indicator 4 e2 |\ 5 c5 |\\ 6 6d |#\\ 7 b5 |##\\ 8 df |###\\ 9 fb |####\\ 10 48 |#####\\ 11 d2 |#####|| iBeacon proximity UUID 12 b0 |#####|| 13 60 |#####// 14 d0 |####// 15 f5 |###// 16 a7 |##// 17 10 |#// 18 96 |// 19 e0 |/ 20 00 - major 21 00 22 00 - minor 23 00 24 c5 - The 2's complement of the calibrated Tx Power
| Constructor and Description |
|---|
IBeaconManufacturerData(BluetoothLeDevice device) |
IBeaconManufacturerData(byte[] data)
Instantiates a new iBeacon manufacturer data object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCalibratedTxPower()
Gets the calibrated TX power of the iBeacon device as reported.
|
int |
getCompanyIdentifier()
Gets the iBeacon company identifier.
|
int |
getIBeaconAdvertisement() |
int |
getMajor()
Gets the iBeacon Major value.
|
int |
getMinor()
Gets the iBeacon Minor value.
|
java.lang.String |
getUUID()
Gets the iBeacon UUID.
|
public IBeaconManufacturerData(BluetoothLeDevice device)
public IBeaconManufacturerData(byte[] data)
data - the #uk.co.alt236.bluetoothlelib.device.adrecord.AdRecord.TYPE_MANUFACTURER_SPECIFIC_DATA data arrayjava.lang.IndexOutOfBoundsException - if the data array is shorter than expectedpublic int getCalibratedTxPower()
public int getCompanyIdentifier()
public int getIBeaconAdvertisement()
public int getMajor()
public int getMinor()
public java.lang.String getUUID()