public class Eddystone extends Packet
Eddystone beacon can either transmit Eddystone-UID or Eddystone-URL packet. Never both.
Periodically beacon sends telemetry information. Available in telemetry
field along
with time it was seen telemetryLastSeenMillis
.
Modifier and Type | Field and Description |
---|---|
int |
calibratedTxPower
Signal strength emitted by the beacon in dBm at 0 meters distance.
|
static android.os.Parcelable.Creator<Eddystone> |
CREATOR |
EddystoneEID |
eid
Eddystone EID information after resolving in google cloud.
|
java.lang.String |
instance
Eddystone-UID instance.
|
MacAddress |
macAddress
MAC address of the beacon.
|
java.lang.String |
namespace
Eddystone-UID namespace.
|
int |
rssi
Received Signal Strength Indication at the moment of scanning.
|
EddystoneTelemetry |
telemetry
Telemetry information for this beacon.
|
java.lang.Long |
telemetryLastSeenMillis
Time in milliseconds when last telemetry was seen for this beacon.
|
java.lang.String |
url
Eddystone-URL url.
|
packetType
Constructor and Description |
---|
Eddystone(MacAddress macAddress,
int calibratedTxPower,
int rssi,
java.lang.String namespace,
java.lang.String instance,
java.lang.String url,
java.lang.Long telemetryLastSeenMillis,
EddystoneTelemetry telemetry,
EddystoneEID eid) |
Eddystone(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getUniqueKey()
Returns unique key for this packet to identify it between other
Packet objects. |
int |
hashCode() |
boolean |
isEid()
Returns true if Eddystone was encoded as EID
|
boolean |
isUid()
Returns true if Eddystone is setup as Eddystone-UID
|
boolean |
isUrl()
Returns true if Eddystone is setup as Eddystone-URL
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getPacketType
public final MacAddress macAddress
public final int calibratedTxPower
public final int rssi
public final java.lang.String namespace
public final java.lang.String instance
public final java.lang.String url
public final java.lang.Long telemetryLastSeenMillis
public final EddystoneTelemetry telemetry
public final EddystoneEID eid
public static final android.os.Parcelable.Creator<Eddystone> CREATOR
public Eddystone(MacAddress macAddress, int calibratedTxPower, int rssi, java.lang.String namespace, java.lang.String instance, java.lang.String url, java.lang.Long telemetryLastSeenMillis, EddystoneTelemetry telemetry, EddystoneEID eid)
public Eddystone(android.os.Parcel in)
public boolean isUid()
public boolean isUrl()
public boolean isEid()
public java.lang.String getUniqueKey()
Packet
Packet
objects.
Child classes should implement this method.getUniqueKey
in class Packet
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class Packet