DfuError
Failure conditions during a firmware update.
Every subtype is both a DfuError and an Exception, so errors can be caught with standard try/catch and also pattern-matched via when. Errors are surfaced through DfuProgress.Failed when using DfuController.
Inheritors
Types
Link copied to clipboard
data class CharacteristicNotFound(val name: String, val message: String = "DFU characteristic not found: ") : Exception, DfuError
A required DFU GATT characteristic is missing from the service.
Link copied to clipboard
CRC32 verification failed after transferring an object.
Link copied to clipboard
data class FirmwareParseError(val message: String, val cause: Throwable? = null) : Exception, DfuError
The firmware .zip archive could not be parsed.
Link copied to clipboard
Link copied to clipboard
MCUboot image slot management error.
Link copied to clipboard
Peripheral was not in Connected state when the DFU started.
Link copied to clipboard
Link copied to clipboard
data class ServiceNotFound(val message: String = "DFU service not found on peripheral") : Exception, DfuError
The peripheral does not expose the required DFU GATT service.
Link copied to clipboard
Catch-all for transport-level failures (disconnects, write errors).