Transferring

data class Transferring(val currentObject: Int, val totalObjects: Int, val bytesSent: Long, val totalBytes: Long, val bytesPerSecond: Long) : DfuProgress

Firmware bytes are being written to the peripheral.

Constructors

Link copied to clipboard
constructor(currentObject: Int, totalObjects: Int, bytesSent: Long, totalBytes: Long, bytesPerSecond: Long)

Properties

Link copied to clipboard

rolling throughput estimate

Link copied to clipboard

bytes transferred so far (init packet + firmware)

Link copied to clipboard

zero-based index of the DFU object being transferred

Link copied to clipboard

progress as 0.0..1.0, suitable for binding to a progress bar

Link copied to clipboard

total firmware size in bytes

Link copied to clipboard

total number of DFU objects in the firmware