Device

inner 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

The humidity, in %RH.

Link copied to clipboard
val name: String?

Optionally, a name advertised by the Bluetooth device.

Link copied to clipboard
var rssi: Int

The Receive Signal Strength Indicator value.

Link copied to clipboard

The temperature, in °C.

Link copied to clipboard
var x: Int?

The X-axis accelerometer value, in mg.

Link copied to clipboard
var y: Int?

The Y-axis accelerometer value, in mg.

Link copied to clipboard
var z: Int?

The Z-axis accelerometer value, in mg.

Functions

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

Returns a string representation of a Device.