Package-level declarations

Types

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

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

Link copied to clipboard
class PollingSession(protocol: EUCProtocol, scope: CoroutineScope, now: () -> Long, trace: (QueryTraceEvent) -> Unit, enqueue: (ByteArray, () -> Boolean, () -> Unit, () -> Unit) -> Unit, onError: (Exception) -> Unit)

Coroutine driver; transport is supplied by the connector and the caller's scope is never owned.

Link copied to clipboard
class ProtocolSessionDriver(val protocol: SyncEucProtocol, scope: CoroutineScope? = null, logger: Logger = NoOpLogger(), now: () -> Long = { MonotonicClock.millis() }) : EUCProtocol

Coroutine/Flow driver for a pure ProtocolSession, preserving the public EUCProtocol API.

Link copied to clipboard
class WriteSession(scope: CoroutineScope, maxQueuedWrites: Int = DEFAULT_MAX_QUEUED_WRITES, now: () -> Long = { MonotonicClock.millis() }, onError: (Exception) -> Unit)

Serializes transport writes, owns write generations, and retries only stack rejections.