NoServices

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

Transitions into a Discovering 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 fun startDiscovering()

Attempts to start discovering the list of RemoteService of the ConnectableDevice

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