retrieveEsp32Firmware

suspend fun retrieveEsp32Firmware(release: FirmwareRelease, hardware: DeviceHardware, onProgress: (Float) -> Unit): FirmwareArtifact?(source)

Download the ESP32 OTA firmware binary. Tries in order:

  1. .mt.json manifest resolution (2.7.17+)

  2. Current naming convention (firmware-<target>-<version>.bin)

  3. Legacy naming (firmware-<target>-<version>-update.bin)

  4. Any matching .bin from the release zip

Return

The downloaded .bin FirmwareArtifact, or null if the file could not be resolved.