update Firmware
abstract suspend fun updateFirmware(update: FirmwareUpdate.Available): 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
update
The available firmware update information including version and location.
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.