ProtocolSessionDriver
Coroutine/Flow driver for a pure ProtocolSession, preserving the public EUCProtocol API.
Every call into protocol is serialized, so the protocol itself needs no synchronization.
After each call, pending ProtocolOutputs are drained: telemetry goes to dataFlow, writes to writeFlow, security updates to securityStateFlow/securityEventFlow, and timer requests are scheduled on the coroutine scope.
decode returns the last telemetry produced by that notification, synchronously.
When no scope is given the driver owns one and cancels it in close; a caller-provided scope is never cancelled (only this driver's timer jobs are).
Constructors
Properties
Number of currently armed timers (for diagnostics and tests).
Defensive copies of incoming notification chunks.
Latest notification-confirmed security state, or null when unsupported/unknown.
Functions
Keeps legacy custom implementations working when polling supplies typed values.
Legacy extension point. Built-in facades check and convert values at the JVM boundary.
Latest measured speed, or null when the protocol cannot identify a speed sample.