DefaultFirmwareUpdateManager

class DefaultFirmwareUpdateManager(radioPrefs: RadioPrefs, secureDfuHandler: SecureDfuHandler, usbUpdateHandler: UsbUpdateHandler, esp32OtaUpdateHandler: Esp32OtaUpdateHandler) : FirmwareUpdateManager(source)

Default FirmwareUpdateManager that routes to the correct handler based on the current connection type and device architecture. All handlers are KMP-ready and work on Android, Desktop, and (future) iOS.

Constructors

Link copied to clipboard
constructor(radioPrefs: RadioPrefs, secureDfuHandler: SecureDfuHandler, usbUpdateHandler: UsbUpdateHandler, esp32OtaUpdateHandler: Esp32OtaUpdateHandler)

Functions

Link copied to clipboard
open suspend override fun startUpdate(release: FirmwareRelease, hardware: DeviceHardware, address: String, updateState: (FirmwareUpdateState) -> Unit, firmwareUri: CommonUri? = null): FirmwareArtifact?

Begin a firmware update for the connected device.