Package com.blukii.sdk.discovery
Class BeaconSensorData
java.lang.Object
com.blukii.sdk.discovery.BeaconSensorData
- All Implemented Interfaces:
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
-
Field Summary
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Method Summary
Modifier and TypeMethodDescriptionint
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
getLight()
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)
-
Field Details
-
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
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
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
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 interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-