reset

open fun reset(@NotNull callback: @NotNull McuMgrCallback<McuMgrOsResponse>)

Reset the device (asynchronous).

As boot_mode and force parameters are not provided, the device will reboot into the application mode (normal boot mode) and the reset will not be forced (assuming CONFIG_MCUMGR_GRP_OS_RESET_HOOK enabled).

Parameters

callback

the asynchronous callback.

See also


@NotNull
open fun reset(): @NotNull McuMgrOsResponse

Reset the device (synchronous).

As boot_mode and force parameters are not provided, the device will reboot into the application mode (normal boot mode) and the reset will not be forced (assuming CONFIG_MCUMGR_GRP_OS_RESET_HOOK enabled).

Return

The response.

See also

Throws


open fun reset(bootMode: Int, force: Boolean, @NotNull callback: @NotNull McuMgrCallback<McuMgrOsResponse>)

Reset the device (asynchronous).

By default, this command is accepted in all conditions, however if the CONFIG_MCUMGR_GRP_OS_RESET_HOOK is enabled and an application registers a callback, the callback will be called when this command is issued and can be used to perform any necessary tidy operations prior to the module rebooting, or to reject the reset request outright altogether with an error response.

Parameters

bootMode

The boot mode to use for the reset, defaults to BOOT_MODE_TYPE_NORMAL.

force

Should the reset be forced not allowing application to reject it, defaults to false.

callback

the asynchronous callback.

See also


@NotNull
open fun reset(bootMode: Int, force: Boolean): @NotNull McuMgrOsResponse

Reset the device (synchronous).

By default, this command is accepted in all conditions, however if the CONFIG_MCUMGR_GRP_OS_RESET_HOOK is enabled and an application registers a callback, the callback will be called when this command is issued and can be used to perform any necessary tidy operations prior to the module rebooting, or to reject the reset request outright altogether with an error response.

Return

The response.

Parameters

bootMode

The boot mode to use for the reset, defaults to BOOT_MODE_TYPE_NORMAL.

force

Should the reset be forced not allowing application to reject it, defaults to false.

See also

Throws