BKBeaconSensorData
open class BKBeaconSensorData : NSObject, NSSecureCoding
Read only data object for sensor data that is emitted by blukii beacons
BeaconSensor values are part of BKDiscoveryData
Seealso
BKDiscoveryData
-
The value of the air pressure sensor. (Read-Only)
If the beacon does not emit air pressure the default value is Int16.min
Declaration
Swift
internal(set) open var airPressure: Float
Return Value
Air pressure in hP
-
The value of the light sensor. (Read-Only)
If the beacon does not emit light the default value is Int16.min
Declaration
Swift
internal(set) open var light: Int16
Return Value
Light in Lux
-
The value of the humidity sensor. (Read-Only)
If the beacon does not emit humidity the default value is Int16.min
Declaration
Swift
internal(set) open var humidity: Int16
Return Value
Humidity in percent (%)
-
The value of the temperature sensor. (Read-Only)
If the beacon does not emit temperature the default value is Float()
Declaration
Swift
internal(set) open var temperature: Float
Return Value
Temperature in degrees Celsius (°C)
-
The 3D axis Valuee of the acceleration sensor.
Note: If the scan duration longer than one advertising interval duration the maximum value of each axis is returned
Declaration
Swift
internal(set) open var acceleration: BKAxisData?
Return Value
AxisData values of acceleration
-
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
Declaration
Swift
internal(set) open var magnetism: BKAxisData?
Return Value
AxisData values of magnetism
-
The state if a device hardware trigger (like button or reed contact) is actually switched.
If more than one trigger is available (both button and reed) at least one of them needs to be switched. This state is available for SensorBeacon since Firmware 003.007
Declaration
Swift
internal(set) open var triggerSwitched: BKCommonState
Return Value
true, if at least one trigger is switched