EddystoneUid
Stay organized with collections
Save and categorize content based on your preferences.
An Eddystone UID, broadcast by BLE beacons.
Public Constructor Summary
Inherited Method Summary
From class java.lang.Object
Constants
public static final int
INSTANCE_LENGTH
Length of an Eddystone UID instance, in bytes.
Constant Value:
6
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.
Constant Value:
16
public static final int
NAMESPACE_LENGTH
Length of an Eddystone UID namespace, in bytes.
Constant Value:
10
Public Constructors
public
EddystoneUid
( String
hexId)
Parameters
hexId
Hex representation of a 16-byte ID (namespace plus instance).
public
EddystoneUid
( String
hexNamespace, String
hexInstance)
Public Methods
public boolean
equals
( Object
o)
public String
getHex
()
Returns the 16-byte ID, as a hex string.
public String
getInstance
()
Returns the instance (last 6 bytes), as a hex string.
public String
getNamespace
()
Returns the namespace (first 10 bytes), as a hex string.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eEddystoneUid\u003c/code\u003e represents an Eddystone UID broadcast by Bluetooth Low Energy beacons, and consists of a 10-byte namespace and a 6-byte instance.\u003c/p\u003e\n"],["\u003cp\u003eIt can be created using a 16-byte hex ID or separate hex values for namespace and instance.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve the namespace, instance, and full ID as hex strings using provided methods.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003efrom()\u003c/code\u003e method allows conversion of a \u003ccode\u003eMessage\u003c/code\u003e object to an \u003ccode\u003eEddystoneUid\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eEddystoneUid\u003c/code\u003e provides methods for equality checks (\u003ccode\u003eequals()\u003c/code\u003e and \u003ccode\u003ehashCode()\u003c/code\u003e), and a \u003ccode\u003etoString()\u003c/code\u003e method for representation.\u003c/p\u003e\n"]]],["The `EddystoneUid` class represents a BLE beacon's UID. Key actions include creating an ID using a 16-byte hex string or separate 10-byte namespace and 6-byte instance hex strings. The class provides methods to retrieve the full 16-byte ID, the 10-byte namespace, and the 6-byte instance as hex strings. It can convert a specific message type to an `EddystoneUid`. Key information: instance length is 6 bytes, namespace length is 10, and total UID length is 16 bytes.\n"],null,[]]