ProtocolError

data class ProtocolError(val opcode: Int, val resultCode: Int, val message: String) : Exception, DfuError

The peripheral returned an error response to a DFU command.

Constructors

Link copied to clipboard
constructor(opcode: Int, resultCode: Int, message: String)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
open override val message: String
Link copied to clipboard
val opcode: Int

the DFU opcode that was rejected

Link copied to clipboard

the Nordic DFU result code (see Nordic DFU spec for values)