Package com.blukii.sdk.discovery
Klasse BeaconSensorData
java.lang.Object
com.blukii.sdk.discovery.BeaconSensorData
- Alle implementierten Schnittstellen:
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
FelderVon Schnittstelle geerbte Felder android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintGets the 3D axis values of acceleration sensor.floatGets the value of the air pressure sensor.intGets the value of the humidity sensor.intgetLight()Gets the value of the light sensor.Gets the 3D axis values of magnetism sensor.floatGets the value of the temperature sensor.Gets the state if a device hardware trigger (like button) is actually switched.voidwriteToParcel(android.os.Parcel dest, int flags)
-
Felddetails
-
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
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
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
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:
describeContentsin Schnittstelleandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Angegeben von:
writeToParcelin Schnittstelleandroid.os.Parcelable
-