An Eddystone UID, broadcast by BLE beacons.
See Also
Constant Summary
int | INSTANCE_LENGTH | Length of an Eddystone UID instance, in bytes. |
int | LENGTH | Length of an Eddystone UID, in bytes. |
int | NAMESPACE_LENGTH | Length of an Eddystone UID namespace, in bytes. |
Public Constructor Summary
Public Method Summary
boolean | |
staticEddystoneUid |
from(Message
message)
Converts a Message of type
Message.MESSAGE_TYPE_EDDYSTONE_UID to an EddystoneUid.
|
String |
getHex()
Returns the 16-byte ID, as a hex string.
|
String |
getInstance()
Returns the instance (last 6 bytes), as a hex string.
|
String |
getNamespace()
Returns the namespace (first 10 bytes), as a hex string.
|
int |
hashCode()
|
String |
toString()
|
Inherited Method Summary
Constants
public static final int INSTANCE_LENGTH
Length of an Eddystone UID instance, in bytes.
public static final int LENGTH
Length of an Eddystone UID, in bytes. An Eddystone UID consists of a 10-byte namespace, followed by a 6-byte instance.
public static final int NAMESPACE_LENGTH
Length of an Eddystone UID namespace, in bytes.
Public Constructors
publicEddystoneUid(StringhexId)
Creates an ID.
Parameters
hexId | Hex representation of a 16-byte ID (namespace plus instance). |
---|
Public Methods
public booleanequals(Objecto)
public staticEddystoneUid from(Message message)
Converts a Message of type
Message.MESSAGE_TYPE_EDDYSTONE_UID
to an EddystoneUid.
publicStringgetHex()
Returns the 16-byte ID, as a hex string.
publicStringgetInstance()
Returns the instance (last 6 bytes), as a hex string.
publicStringgetNamespace()
Returns the namespace (first 10 bytes), as a hex string.