ACoreDevice

abstract class ACoreDevice(btDevice: BluetoothDevice, var rssi: Int) : ADevice

Model implementation parts common to Beacon and Eddystone devices.

Inheritors

Constructors

Link copied to clipboard
protected constructor(btDevice: BluetoothDevice, rssi: Int)

Properties

Link copied to clipboard

The MAC address of the Bluetooth device.

Link copied to clipboard

A rough estimate of how far away is the Bluetooth device, in meters.

Link copied to clipboard

A collection of custom informations. Typically for a battery level indicator.

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.

Functions

Link copied to clipboard
protected fun extrasAsString(): String?

Returns a string representation of the extras property, mainly for the full string representation of the device.

Link copied to clipboard
protected abstract fun getTxPowerAt1m(): Int

Gets the expected calibrated transmitted power at 1 meter.