UsbUpdateHandler

class UsbUpdateHandler(firmwareRetriever: FirmwareRetriever, radioController: RadioController, nodeRepository: NodeRepository) : FirmwareUpdateHandler(source)

Handles firmware updates via USB Mass Storage (UF2).

Constructors

Link copied to clipboard
constructor(firmwareRetriever: FirmwareRetriever, radioController: RadioController, nodeRepository: NodeRepository)

Functions

Link copied to clipboard
abstract suspend fun startUpdate(release: ERROR CLASS: Symbol not found for FirmwareRelease, hardware: ERROR CLASS: Symbol not found for DeviceHardware, target: String, updateState: (FirmwareUpdateState) -> Unit, firmwareUri: ERROR CLASS: Symbol not found for CommonUri?? = null): String?

Start the firmware update process.

open suspend override fun startUpdate(release: FirmwareRelease, hardware: DeviceHardware, target: String, updateState: (FirmwareUpdateState) -> Unit, firmwareUri: CommonUri?): String?