Properties

Link copied to clipboard
abstract val dataFlow: Flow<EUCData>
Link copied to clipboard
abstract val manufacturer: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val protocolId: String
Link copied to clipboard
open val rawFrameFlow: Flow<ByteArray>

Defensive copies of incoming notification chunks.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val writeFlow: Flow<ByteArray>

Functions

Link copied to clipboard
open fun canRetryCommand(payload: ByteArray): Boolean
Link copied to clipboard
open fun canSendCommand(payload: ByteArray): Boolean
Link copied to clipboard
abstract fun close()
Link copied to clipboard
open fun commandStateError(commandId: String): String?
Link copied to clipboard
open override fun createCommand(commandType: CommandType, value: CommandValue): ByteArray

Keeps legacy custom implementations working when polling supplies typed values.

abstract fun createCommand(commandType: CommandType, value: Any): ByteArray

Legacy extension point. Built-in facades check and convert values at the JVM boundary.

open fun createCommand(commandId: String, value: CommandValue): ByteArray
Link copied to clipboard
abstract fun decode(data: ByteArray): EUCData?
Link copied to clipboard
Link copied to clipboard
open fun getBMSData(): List<BMSData>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getServiceUUID(): EucUuid
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun isDeviceReady(data: EUCData): Boolean
Link copied to clipboard

Latest measured speed, or null when the protocol cannot identify a speed sample.

Link copied to clipboard
open fun matchesDeviceName(deviceName: String): Boolean
Link copied to clipboard
Link copied to clipboard
open fun onCommandSubmitted(payload: ByteArray)
Link copied to clipboard
open fun resetSession()