ProtocolOutput

sealed class ProtocolOutput(source)

Output produced by a SyncEucProtocol: either an event for the application or an action the session layer must perform. Protocols never perform I/O or schedule work themselves.

Inheritors

Types

Link copied to clipboard
data class CancelTimer(val id: String) : ProtocolOutput

Disarms timer id; ignored when it is not armed.

Link copied to clipboard
data class DebugLog(val tag: String, val message: String) : ProtocolOutput

Diagnostic message for the session's logger.

Link copied to clipboard

Individual security notification or operation result.

Link copied to clipboard

Notification-confirmed security state changed (or was re-confirmed).

Link copied to clipboard
data class StartTimer(val id: String, val delayMs: Long) : ProtocolOutput

Arms timer id to fire SyncEucProtocol.onTimer after delayMs. Re-arming an already armed id replaces it.

Link copied to clipboard
data class Telemetry(val data: EUCData) : ProtocolOutput

Decoded telemetry.

Link copied to clipboard
class Write(val payload: ByteArray) : ProtocolOutput

Bytes the session must write to the protocol's write characteristic.