test

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

Test an image on the device (asynchronous).

Testing an image will verify the image and put it in a pending state. That is, when the device resets, the pending image will be booted into.

Parameters

hash

the hash of the image to test.

callback

the asynchronous callback.


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

Test an image on the device (synchronous).

Testing an image will verify the image and put it in a pending state. That is, when the device resets, the pending image will be booted into.

Return

The response.

Parameters

hash

the hash of the image to test.

Throws