Klasse BeaconSensorData

java.lang.Object
com.blukii.sdk.discovery.BeaconSensorData
Alle implementierten Schnittstellen:
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.

Siehe auch:
  • Verschachtelte Klassen - Übersicht

    Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final android.os.Parcelable.Creator<BeaconSensorData>
     

    Von Schnittstelle geerbte Felder android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    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)
     

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • CREATOR

      public static final android.os.Parcelable.Creator<BeaconSensorData> CREATOR
  • Methodendetails

    • 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

      Gibt zurück:
      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

      Gibt zurück:
      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

      Gibt zurück:
      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

      Gibt zurück:
      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

      Gibt zurück:
      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

      Gibt zurück:
      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

      Gibt zurück:
      true, if at least one trigger is switched
    • describeContents

      public int describeContents()
      Angegeben von:
      describeContents in Schnittstelle android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Angegeben von:
      writeToParcel in Schnittstelle android.os.Parcelable