Types

Link copied to clipboard

A Connected State indicating all Service have been discovered

Link copied to clipboard

A Connected State where the device is discovering the list of RemoteService

Link copied to clipboard
Link copied to clipboard

A Connected state that holds a current MTU value and allows requesting a new MTU

Link copied to clipboard

A Connected State where no RemoteService has been discovered yet

Properties

Link copied to clipboard

Transitions into a Disconnected State

Link copied to clipboard

Transitions into a Disconnecting State

Link copied to clipboard
abstract val reconnect: suspend () -> ConnectableDeviceState.Connecting

Transitions into a Connecting State

Link copied to clipboard

The ConnectionSettings.ReconnectionSettings to use for reconnecting when the device disconnects unexpectedly

Functions

Link copied to clipboard
abstract suspend fun pair(): PairingResult

Attempts to pair this device

Link copied to clipboard
abstract suspend fun readRssi()

Reads the RSSI

Link copied to clipboard
open fun <S : KalugaState> remain(): suspend () -> S
Link copied to clipboard
abstract fun startDisconnected()

Starts transitioning to a Disconnected State

Link copied to clipboard
abstract suspend fun unpair(): PairingResult

Attempts to unpair the Device

Link copied to clipboard

Transitions into a Connected state where the the Connected.reconnectionSettings have been updated to reconnectionSettings