DeviceState

sealed class DeviceState

Represents the state of the device Bluetooth LE connection.

Inheritors

Types

Link copied to clipboard
data class Connected(val config: MemfaultConfig) : DeviceState

The device is connected and set up to receive Diagnostic data.

Link copied to clipboard
data object Connecting : DeviceState

The device is currently connecting.

Link copied to clipboard
data class Disconnected(val reason: DeviceState.Disconnected.Reason? = null) : DeviceState

The device is disconnected.

Link copied to clipboard

The device is currently disconnecting.

Link copied to clipboard

The device is being initialized.