downloadFile

open suspend override fun downloadFile(url: String, fileName: String, onProgress: (Float) -> Unit): FirmwareArtifact?(source)

Download a file from url, saving it as fileName in a temporary directory.

Return

The downloaded FirmwareArtifact, or null on failure.

Parameters

onProgress

Progress callback (0.0 to 1.0).