McuBootDfuProtocol

MCUboot DFU protocol implementation using SMP (Simple Management Protocol).

Transfers a MCUboot firmware image via CBOR-encoded SMP commands over BLE. Supports offset-based resume, SHA256 verification, and the MCUboot test/confirm image activation workflow.

Transfer flow

  1. Query current image state (slot availability)

  2. Upload firmware in chunks with offset-based flow control

  3. Mark uploaded image as "test" (pending boot)

  4. Reset device to boot into new image

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.