public class EddystoneEID extends Eddystone
Eddystone.FrameType
Constructor and Description |
---|
EddystoneEID()
Constructor to create an instance with length=13, type=0x16
(Service Data - 16-bit UUID), service-UUID=0xFEAA (Eddystone),
frame-type=EID, tx-power=0 and eid=0.
|
EddystoneEID(int length,
int type,
byte[] data)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getEID()
Get the 8-byte EID (ephemeral identifier).
|
String |
getEIDAsString()
Get the 8-byte EID (ephemeral identifier) as an upper-case hex string.
|
int |
getTxPower()
Get the calibrated Tx power at 0 m.
|
String |
toString() |
getFrameType
getServiceUUID
public EddystoneEID()
public EddystoneEID(int length, int type, byte[] data)
length
- The length of the AD structure.type
- The AD type. The value should always be 0x16
(Service Data - 16-bit UUID).data
- The AD data whose format is Eddystone EID.
The first two bytes should be 0xAA and 0xFE
(meaning Eddystone). The third byte should be 0x3?
(meaning Eddystone EID).public int getTxPower()
public byte[] getEID()
public String getEIDAsString()
Copyright © 2016. All rights reserved.