streamFirmware

open suspend override fun streamFirmware(data: ByteArray, chunkSize: Int, onProgress: suspend (Float) -> Unit): Result<Unit>(source)

Stream firmware binary data to the device.

Return

Success if all data transferred and verified, error otherwise

Parameters

data

Complete firmware binary

chunkSize

Size of each chunk to send (256-512 for BLE, up to 1024 for WiFi)

onProgress

Progress callback (0.0 to 1.0)