public class EddystoneUID extends Eddystone
Eddystone.FrameType
Constructor and Description |
---|
EddystoneUID()
Constructor to create an instance with length=23, type=0x16
(Service Data - 16-bit UUID), service-UUID=0xFEAA (Eddystone),
frame-type=UID, tx-power=0, namespace-id=0, instance-id=0,
and reserved=0.
|
EddystoneUID(int length,
int type,
byte[] data)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBeaconId()
Get the 16-byte beacon ID.
|
String |
getBeaconIdAsString()
Get the 16-byte beacon ID as an upper-case hex string.
|
byte[] |
getInstanceId()
Get the 6-byte instance ID.
|
String |
getInstanceIdAsString()
Get the 6-byte instance ID as an upper-case hex string.
|
byte[] |
getNamespaceId()
Get the 10-byte namespace ID.
|
String |
getNamespaceIdAsString()
Get the 10-byte namespace ID as an upper-case hex string.
|
int |
getTxPower()
Get the calibrated Tx power at 0 m.
|
String |
toString() |
getFrameType
getServiceUUID
public EddystoneUID()
public EddystoneUID(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 UID.
The first two bytes should be 0xAA and 0xFE
(meaning Eddystone). The third byte should be 0x0?
(meaning Eddystone UID).public int getTxPower()
public byte[] getNamespaceId()
public String getNamespaceIdAsString()
public byte[] getInstanceId()
public String getInstanceIdAsString()
public byte[] getBeaconId()
Beacon ID = Namespace ID + Instance ID
public String getBeaconIdAsString()
Copyright © 2016. All rights reserved.