Device

class Device : ADevice

The model for the kind of device managed by this plugin.

Properties

Link copied to clipboard

The MAC address of the Bluetooth device.

Link copied to clipboard

The battery voltage, in mV.

Link copied to clipboard
var co2: Int?

The CO2 concentration, in ppm. The value is null when the sensor is not present.

Link copied to clipboard

The humidity, in %RH. The value is null when the sensor is not present.

Link copied to clipboard
var model: Int

The model number of the device.

Link copied to clipboard
val name: String?

Optionally, a name advertised by the Bluetooth device.

Link copied to clipboard

The pressure, in kPa. The value is null when the sensor is not present.

Link copied to clipboard
var rssi: Int

The Receive Signal Strength Indicator value.

Link copied to clipboard
var serial: Int

The serial number of the device.

Link copied to clipboard

The temperature, in °C. The value is null when the sensor is not present.

Link copied to clipboard
var x: Float?

The X-axis accelerometer value, in g. The value is null when the sensor is not present.

Link copied to clipboard
var y: Float?

The Y-axis accelerometer value, in g. The value is null when the sensor is not present.

Link copied to clipboard
var z: Float?

The Z-axis accelerometer value, in g. The value is null when the sensor is not present.

Functions

Link copied to clipboard
open override fun toString(): String

Returns a string representation of a Device.