performDfu

fun performDfu(firmware: FirmwarePackage, options: DfuOptions = DfuOptions()): Flow<DfuProgress>

Start a firmware update and observe its progress.

Returns a cold Flow — the DFU begins when you call collect.

Return

a cold Flow of DfuProgress states

Parameters

firmware

the firmware package to install

options

DFU configuration