SensorInHibernation

data class SensorInHibernation(val id: String, val rssi: Int, val bluetoothMacAddress: BluetoothMacAddress, val name: String?, val softwareVersion: SoftwareVersion, val features: Set<SensorInHibernation.Feature>, val hibernationMode: SensorInHibernation.HibernationMode, val batteryVoltage: Int?) : Device

Efento sensor in hibernation mode.

A hibernating sensor suspends measurements and server communication and only advertises its basic status. In HibernationMode.FORCED the sensor accepts connections and stays in hibernation until woken up via Bluetooth. In HibernationMode.VOLTAGE_TRIGGERED the sensor does not accept connections and wakes up on its own once stable power is restored.

Constructors

Link copied to clipboard
constructor(id: String, rssi: Int, bluetoothMacAddress: BluetoothMacAddress, name: String?, softwareVersion: SoftwareVersion, features: Set<SensorInHibernation.Feature>, hibernationMode: SensorInHibernation.HibernationMode, batteryVoltage: Int?)

Types

Link copied to clipboard

Device specific functionality.

Link copied to clipboard

Properties

Link copied to clipboard

Battery voltage in millivolts or null if not measured or the external power supply is connected

Link copied to clipboard

Bluetooth mac address of the device

Link copied to clipboard

Features supported by sensor

Link copied to clipboard

Hibernation mode of the device

Link copied to clipboard
open override val id: String

Id of the device that is used when establishing a connection

Link copied to clipboard
val name: String?

Name of the device or null if not available

Link copied to clipboard
open override val rssi: Int

Bluetooth rssi of the device

Link copied to clipboard

Software version of the device