erase

open fun erase(@NotNull callback: @NotNull McuMgrCallback<McuMgrImageResponse>)

Erase the secondary slot of the main image (asynchronous).

Parameters

callback

the asynchronous callback.


open fun erase(slot: Int, @NotNull callback: @NotNull McuMgrCallback<McuMgrImageResponse>)

Erase the given slot of the main image (asynchronous).

Parameters

slot

the slot id: 0 for primary, 1 for secondary (default).

callback

the asynchronous callback.


@NotNull
open fun erase(): @NotNull McuMgrImageResponse

Erase the secondary slot of the main image (synchronous).

Return

The response.

Throws


@NotNull
open fun erase(slot: Int): @NotNull McuMgrImageResponse

Erase the given slot of the main image (synchronous).

Return

The response.

Parameters

slot

the slot id: 0 for primary, 1 for secondary (default).

Throws