confirm

open fun confirm(hash: @Nullable Array<Byte>, @NotNull callback: @NotNull McuMgrCallback<McuMgrImageStateResponse>)

Confirm an image on the device (asynchronous).

Confirming an image will make it the default to boot into.

Parameters

hash

the hash of the image to confirm. If not provided, the current image running on the device will be made permanent.

callback

the asynchronous callback.


@NotNull
open fun confirm(hash: @Nullable Array<Byte>): @NotNull McuMgrImageStateResponse

Confirm an image on the device (synchronous).

Confirming an image will make it the default to boot into.

Return

The response.

Parameters

hash

the hash of the image to confirm. If not provided, the current image running on the device will be made permanent.

Throws