onProgressChanged
open fun onProgressChanged(@NonNull deviceAddress: String, percent: Int, speed: Float, avgSpeed: Float, currentPart: Int, partsTotal: Int)
Method called during uploading the firmware. It will not be called twice with the same value of percent, however, in case of small firmware files, some values may be omitted.
Parameters
deviceAddress
the target device address.
percent
the current status of upload (0-99).
speed
the current speed in bytes per millisecond.
avgSpeed
the average speed in bytes per millisecond
currentPart
the number pf part being sent. In case the ZIP file contains a Soft Device and/or a Bootloader together with the application the SD+BL are sent as part 1,then the service starts again and send the application as part 2.
partsTotal
total number of parts.