DfuException

Types

Link copied to clipboard
class ChecksumMismatch(expected: Int, actual: Int) : DfuException

CRC-32 of the transferred data does not match the device's computed checksum.

Link copied to clipboard
class ConnectionFailed(message: String, cause: Throwable? = null) : DfuException

BLE connection to the DFU target could not be established or was lost.

Link copied to clipboard

The DFU zip package is malformed or missing required entries.

Link copied to clipboard
class ProtocolError(val opcode: Byte, val resultCode: Byte, val extendedError: Byte? = null) : DfuException

The device returned a DFU error response for a given opcode.

Link copied to clipboard
class Timeout(message: String) : DfuException

A DFU operation did not complete within the expected time window.

Link copied to clipboard
class TransferFailed(message: String, cause: Throwable? = null) : DfuException

Data transfer to the device failed for a non-protocol reason (e.g. BLE write error).

Properties

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