Package com.blukii.sdk.discovery
Class EddystoneData
java.lang.Object
com.blukii.sdk.discovery.EddystoneData
- All Implemented Interfaces:
android.os.Parcelable
Read only data object for Eddystone data that is emitted by beacons
See Eddystone specification at https://github.com/google/eddystone/blob/master/protocol-specification.md
EddystoneData can contain data of unencrypted EddyStone UID, URL and TLM.
EddystoneData values are part of DiscoveryData
.
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Method Summary
Modifier and TypeMethodDescriptionint
float
Gets the time since the last beacon reset if the beacon is emitting Eddystone TLM.int
Gets the battery charge value if the beacon is emitting Eddystone TLM.long
Gets the number of frame packets since the last beacon reset if the beacon is emitting Eddystone TLM.float
Gets the temperature value if the beacon is emitting Eddystone TLM.short
Gets the txPower value if the beacon is emitting Eddystone TLM.Gets the Instance ID if the beacon is emitting an Eddystone UID.Gets the Namespace ID if the beacon is emitting an Eddystone UID.getUrl()
Gets the url string if the beacon is emitting an Eddystone URL.void
writeToParcel
(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Method Details
-
getUidNamespace
Gets the Namespace ID if the beacon is emitting an Eddystone UID.- Returns:
- UID Namespace ID
-
getUidInstance
Gets the Instance ID if the beacon is emitting an Eddystone UID.- Returns:
- UID Instance ID
-
getUrl
Gets the url string if the beacon is emitting an Eddystone URL.- Returns:
- Eddystone URL
-
getTxPower
public short getTxPower()Gets the txPower value if the beacon is emitting Eddystone TLM.It stands for the measured RSSI value when the distance between the beacon and the mobile device is 0 meter.
- Returns:
- TxPower in dBm, Short.MIN_VALUE if it is not supported
-
getBattery
public int getBattery()Gets the battery charge value if the beacon is emitting Eddystone TLM.- Returns:
- Battery charge in mV, 0 if the blukii has USB power, Integer.MIN_VALUE if it is not supported
-
getTemperature
public float getTemperature()Gets the temperature value if the beacon is emitting Eddystone TLM.- Returns:
- Temperature in degree Celsius (°C), Float.MIN_VALUE if it is not supported
-
getPackets
public long getPackets()Gets the number of frame packets since the last beacon reset if the beacon is emitting Eddystone TLM.- Returns:
- Number of frame packets since last reset, 0 if it is not supported
-
getActiveTime
public float getActiveTime()Gets the time since the last beacon reset if the beacon is emitting Eddystone TLM.- Returns:
- Number of seconds since last reset (0.1 second resolution), 0.0F if it is not supported
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-