Disconnected

data class Disconnected(val reason: DisconnectReason = DisconnectReason.Unknown) : BleConnectionState(source)

The peripheral is disconnected.

Parameters

reason

why the disconnect occurred. DisconnectReason.Unknown when the platform doesn't provide status information (e.g. JavaScript) or when the disconnect was synthesised locally without a GATT callback.

Constructors

Link copied to clipboard
constructor(reason: DisconnectReason = DisconnectReason.Unknown)

Properties

Link copied to clipboard