Class BeaconSensorData

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

public final class BeaconSensorData extends Object implements android.os.Parcelable
Read only data object for sensor data that is emitted by blukii beacons

BeaconSensorData 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<BeaconSensorData>
     

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    Gets the 3D axis values of acceleration sensor.
    float
    Gets the value of the air pressure sensor.
    int
    Gets the value of the humidity sensor.
    int
    Gets the value of the light sensor.
    Gets the 3D axis values of magnetism sensor.
    float
    Gets the value of the temperature sensor.
    Gets the state if a device hardware trigger (like button) is actually switched.
    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<BeaconSensorData> CREATOR
  • Method Details

    • getAirPressure

      public float getAirPressure()
      Gets the value of the air pressure sensor.

      If the beacon does not emit air pressure the default value is Float.MIN_VALUE

      Returns:
      Air pressure in hP
    • getLight

      public int getLight()
      Gets the value of the light sensor.

      If the beacon does not emit light the default value is Integer.MIN_VALUE

      Returns:
      Light in Lux
    • getHumidity

      public int getHumidity()
      Gets the value of the humidity sensor.

      If the beacon does not emit humidity the default value is Integer.MIN_VALUE

      Returns:
      Humidity in percent (%)
    • getTemperature

      public float getTemperature()
      Gets the value of the temperature sensor.

      If the beacon does not emit temperature the default value is Float.MIN_VALUE

      Returns:
      Temperature in degrees Celsius (°C)
    • getAcceleration

      public AxisData getAcceleration()
      Gets the 3D axis values of acceleration sensor.

      Note: if the scan duration is longer than one advertising interval duration the maximum value of each axis is returned

      Returns:
      AxisData values of acceleration
    • getMagnetism

      public AxisData getMagnetism()
      Gets the 3D axis values of magnetism sensor.

      Note: if the scan duration is longer than one advertising interval duration the maximum value of each axis is returned

      Returns:
      AxisData values of magnetism
    • getTriggerSwitched

      public CommonState getTriggerSwitched()
      Gets the state if a device hardware trigger (like button) is actually switched.

      If more than one trigger is available (both button) at least one of them needs to be switched.

      This state is available for SensorBeacon since Firmware 003.007

      Returns:
      true, if at least one trigger is switched
    • 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