performDfu

abstract fun performDfu(transport: DfuTransport, firmware: FirmwarePackage, options: DfuOptions): Flow<DfuProgress>

Execute a complete firmware update and emit progress.

Return

a cold Flow of DfuProgress states from Starting through Completed

Parameters

transport

BLE transport for sending commands and data

firmware

parsed firmware package to install

options

DFU configuration (PRN interval, retries, timeouts)