Class EddystoneData

java.lang.Object
com.blukii.sdk.discovery.EddystoneData
All Implemented Interfaces:
android.os.Parcelable

public final class EddystoneData extends Object implements 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

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<EddystoneData>
     

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    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.
    Gets the url string if the beacon is emitting an Eddystone URL.
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<EddystoneData> CREATOR
  • Method Details

    • getUidNamespace

      public String getUidNamespace()
      Gets the Namespace ID if the beacon is emitting an Eddystone UID.
      Returns:
      UID Namespace ID
    • getUidInstance

      public String getUidInstance()
      Gets the Instance ID if the beacon is emitting an Eddystone UID.
      Returns:
      UID Instance ID
    • getUrl

      public String 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 interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable