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
Query current image state (slot availability)
Upload firmware in chunks with offset-based flow control
Mark uploaded image as "test" (pending boot)
Reset device to boot into new image
See also
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.