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 (iBS05CO2 only). The value is null when the sensor is not present.

Link copied to clipboard
var counter: Int?

The Event Count field. The value is null when the field is not applicable.

Link copied to clipboard

Is object detected?

Link copied to clipboard

Is magnet detected?

Link copied to clipboard

Is motion detected?

Link copied to clipboard

Is Passive InfraRed detected?

Link copied to clipboard

Is button pressed?

Link copied to clipboard

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

Link copied to clipboard

Illuminance, in lux. The value is null when the sensor is not present.

Link copied to clipboard

The model name of the tag.

Link copied to clipboard
val name: String?

Optionally, a name advertised by the Bluetooth device.

Link copied to clipboard
var range: Int?

The Range field, in mm (iBS09R only). The value is null when the field is not applicable.

Link copied to clipboard
var rssi: Int

The Receive Signal Strength Indicator value.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
var user: Int?

The User field.

Link copied to clipboard
var x1: Int?

The 1 X-axis accelerometer value, in 0.004 g unit.

Link copied to clipboard
var x2: Int?

The 2 X-axis accelerometer value, in 0.004 g unit.

Link copied to clipboard
var x3: Int?

The 3 X-axis accelerometer value, in 0.004 g unit.

Link copied to clipboard
var y1: Int?

The 1 Y-axis accelerometer value, in 0.004 g unit.

Link copied to clipboard
var y2: Int?

The 2 Y-axis accelerometer value, in 0.004 g unit.

Link copied to clipboard
var y3: Int?

The 3 Y-axis accelerometer value, in 0.004 g unit.

Link copied to clipboard
var z1: Int?

The 1 Z-axis accelerometer value, in 0.004 g unit.

Link copied to clipboard
var z2: Int?

The 2 Z-axis accelerometer value, in 0.004 g unit.

Link copied to clipboard
var z3: Int?

The 3 Z-axis accelerometer value, in 0.004 g unit.

Functions

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

Returns a string representation of a Device.