retrieveEsp32Firmware
Download the ESP32 OTA firmware binary. Tries in order:
.mt.jsonmanifest resolution (2.7.17+) — the authoritativeapp0partition image. When the manifest names the image and the download fails its size or digest check, the file is deleted andnullis returned with no fallback. The fallbacks below apply only when no manifest is published, it has noapp0entry, or the image it names could not be downloaded.firmware-<target>-<version>-update.bin— the bare app image. Preferred over the plain.binbecause on pre-2.7.17 releases (which ship no manifest)firmware-<target>-<version>.binis a merged image (bootloader + partition table + app); flashing that to theapp0partition leaves it misaligned and the device'sesp_ota_endrejects it.-update.binis the OTA-able app image whenever it is published.firmware-<target>-<version>.bin— the bare app image on 2.7.17+ (which publish no-update.bin).Any matching
.binfrom the release zip.
Return
The downloaded .bin FirmwareArtifact, or null if the file could not be resolved.