MockServerDevice

data class MockServerDevice(val name: String? = "SERVER", val address: String = "11:22:33:44:55:66", val bondState: BondState = BondState.NONE) : ServerDevice, Parcelable

Class representing mocked BLE server device. It is independent from native Android API. It's good for testing or local connection.

Constructors

Link copied to clipboard
constructor(name: String? = "SERVER", address: String = "11:22:33:44:55:66", bondState: BondState = BondState.NONE)

Properties

Link copied to clipboard
open override val address: String

MAC address of a device.

Link copied to clipboard
open override 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
open 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)