SecureDfuHandler
class SecureDfuHandler(firmwareRetriever: FirmwareRetriever, firmwareFileHandler: FirmwareFileHandler, radioController: RadioController, bleScanner: BleScanner, bleConnectionFactory: BleConnectionFactory, dispatchers: CoroutineDispatchers) : FirmwareUpdateHandler(source)
KMP FirmwareUpdateHandler for nRF52 devices.
Despite its historical name, this handler now drives both Nordic Secure DFU (service FE59) and Nordic Legacy DFU / Adafruit BLEDfu (service 1530). After triggering the buttonless reboot it sniffs which DFU service the bootloader exposes and dispatches to the matching DfuUploadTransport implementation.
All platform I/O (zip extraction, file reading) is delegated to FirmwareFileHandler.
Constructors
Link copied to clipboard
constructor(firmwareRetriever: FirmwareRetriever, firmwareFileHandler: FirmwareFileHandler, radioController: RadioController, bleScanner: BleScanner, bleConnectionFactory: BleConnectionFactory, dispatchers: CoroutineDispatchers)
Functions
Link copied to clipboard
open suspend override fun startUpdate(release: FirmwareRelease, hardware: DeviceHardware, target: String, updateState: (FirmwareUpdateState) -> Unit, firmwareUri: CommonUri? = null): FirmwareArtifact?
Start the firmware update process.