ServerDevice

sealed interface ServerDevice : BleDevice

Class representing BLE server device. It can be either mocked or native variant. It can be connected to using ClientBleGatt`.

Inheritors

Properties

Link copied to clipboard
abstract override val address: String

MAC address of a device.

Link copied to clipboard
abstract val bondState: BondState

Bond state. It can change over time.

Link copied to clipboard
open val hasName: Boolean

Returns true if a device has not empty name.

Link copied to clipboard
open val isBonded: Boolean

Returns true if a device is bonded.

Link copied to clipboard
open val isBonding: Boolean

Returns true if a device is in the middle of bonding process.

Link copied to clipboard
abstract override val name: String?

Name of a device.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)