retrieveEsp32Firmware
Download the ESP32 OTA firmware binary. Tries in order:
.mt.jsonmanifest resolution (2.7.17+) — the authoritativeapp0partition image.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.