ConnectionSessionDriver

class ConnectionSessionDriver(transport: BleTransport, scope: CoroutineScope, random: EucRandom, now: () -> Long, stateChanged: (BLEConstants.ConnectionState) -> Unit, error: (String, Boolean) -> Unit)(source)

Only coroutine scheduling and transport effects; lifecycle policy lives in ConnectionSession.

Constructors

Link copied to clipboard
constructor(transport: BleTransport, scope: CoroutineScope, random: EucRandom, now: () -> Long, stateChanged: (BLEConstants.ConnectionState) -> Unit, error: (String, Boolean) -> Unit)

Functions

Link copied to clipboard
fun configure(timeout: Long, autoReconnect: Boolean, maxRetries: Int)
Link copied to clipboard
fun connect(address: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard