FirmwareUpgradeCallback

Callbacks for firmware upgrades.

Inheritors

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun onStateChanged(prevState: State, newState: State)
Called when the firmware upgrade changes state.
Link copied to clipboard
abstract fun onUpgradeCanceled(state: State)
Called when the firmware upgrade has been canceled using the cancel method.
Link copied to clipboard
abstract fun onUpgradeCompleted()
Called when the firmware upgrade has succeeded.
Link copied to clipboard
abstract fun onUpgradeFailed(state: State, error: McuMgrException)
Called when the firmware upgrade has failed.
Link copied to clipboard
Called when the FirmwareUpgradeManager has started.
Link copied to clipboard
abstract fun onUploadProgressChanged(bytesSent: Int, imageSize: Int, timestamp: Long)
Called when the upload state progress has changed.