updateFirmware

Initiates and monitors the firmware update process on the device.

This abstract method must be implemented by concrete subclasses to define how firmware updates are transferred to the device and installed.

Return

A Flow of StreamResponse updates containing FotaUpdate status events from the update process.

Parameters

update

The available firmware update information including version and location.


abstract suspend fun updateFirmware(file: File): Flow<StreamResponse<FotaUpdate>>

Initiates and monitors the firmware update process on the device.

This abstract method must be implemented by concrete subclasses to define how firmware updates are transferred to the device and installed.

Return

A Flow of StreamResponse updates containing FotaUpdate status events from the update process.

Parameters

file

The update file containing the firmware to be installed.