FirmwareRetriever

Retrieves firmware files, either by direct download or by extracting from a release asset zip.

Constructors

Link copied to clipboard
constructor(fileHandler: FirmwareFileHandler)

Functions

Link copied to clipboard
suspend fun retrieveEsp32Firmware(release: FirmwareRelease, hardware: DeviceHardware, onProgress: (Float) -> Unit): FirmwareArtifact?

Download the ESP32 OTA firmware binary. Tries in order:

Link copied to clipboard
suspend fun retrieveOtaFirmware(release: FirmwareRelease, hardware: DeviceHardware, onProgress: (Float) -> Unit): FirmwareArtifact?

Download the OTA firmware zip for a Nordic (nRF52) DFU update.

Link copied to clipboard
suspend fun retrieveUsbFirmware(release: FirmwareRelease, hardware: DeviceHardware, onProgress: (Float) -> Unit): FirmwareArtifact?

Download the UF2 firmware binary for a USB Mass Storage update (nRF52 / RP2040).