OtaProgress

sealed interface OtaProgress

Progress of a DeviceSession.updateFirmware transfer.

Inheritors

Types

Link copied to clipboard
data object Done : OtaProgress

Image accepted. The device typically reboots into the new firmware, dropping the link.

Link copied to clipboard
data object Finalizing : OtaProgress

All bytes sent; waiting for the device to accept the image.

Link copied to clipboard
data object Requesting : OtaProgress

Update-mode request written; waiting for the device to acknowledge.

Link copied to clipboard
data class Transferring(val sentBytes: Int, val totalBytes: Int) : OtaProgress

Firmware bytes in flight.