NordicDfuProtocol

Nordic Semiconductor Secure DFU v2 protocol implementation.

Transfers firmware in two phases: first the init packet (command object), then the firmware binary split into data objects whose size is negotiated with the peripheral. Each object is CRC32-verified before execution. Supports partial resume — if the peripheral already has a valid prefix of an object, only the remaining bytes are sent.

This is the default DfuProtocol used by DfuController.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun performDfu(transport: DfuTransport, firmware: FirmwarePackage, options: DfuOptions): Flow<DfuProgress>

Execute a complete firmware update and emit progress.