Types

Link copied to clipboard
class BootloaderMismatch(val reported: BootloaderIdentity, val expectedModel: String, val expectedSoftDevice: String) : DfuException

The bootloader in DFU mode is not the board or SoftDevice the package was built for. Nothing was written.

Link copied to clipboard

The bootloader in DFU mode speaks Secure DFU, so the Legacy-only bootloader package was not sent.

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
class InvalidPackage(message: String, cause: Throwable? = null) : DfuException

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

START was not accepted within the PreStartBudget; retrying longer could outlast the bootloader's idle boot.

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?