DiscoveredServices

A Connected State indicating all Service have been discovered

Inheritors

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 mtu: MTU?

The current MTU size of the device

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

Link copied to clipboard
abstract val services: List<Service>

The list of Service hat where discovered

Functions

Link copied to clipboard
abstract fun didUpdateMtu(mtu: MTU): suspend () -> ConnectableDeviceState.Connected

Updates the MTU size of the device

Link copied to clipboard
abstract suspend fun pair()

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 suspend fun requestMtu(mtu: MTU): Boolean

Requests an update to the MTU size of the device

Link copied to clipboard
abstract fun startDisconnected()

Starts transitioning to a Disconnected State

Link copied to clipboard
abstract suspend fun unpair()

Attempts to unpair the Device

Link copied to clipboard

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