bootloaderInfo

open fun bootloaderInfo(@Nullable query: @Nullable String, @NotNull callback: @NotNull McuMgrCallback<McuMgrBootloaderInfoResponse>)

Reads the Bootloader info (asynchronous).

Parameters

query

Allows to query MCUmgr about bootloader used by device and various bootloader parameters. Use BOOTLOADER_INFO_QUERY_BOOTLOADER to get string representing bootloader name. For bootloader named "MCUboot" use BOOTLOADER_INFO_MCUBOOT_QUERY_MODE to get the bootloader mode. If query yields no answer, the response will contain an QUERY_YIELDS_NO_ANSWER error. Use BOOTLOADER_INFO_QUERY_ACTIVE_B0_SLOT to get the ID of an active B0 slot.

callback

the asynchronous callback.


@NotNull
open fun bootloaderInfo(@Nullable query: @Nullable String): @NotNull McuMgrBootloaderInfoResponse

Reads the Bootloader info (synchronous).

Return

The response.

Parameters

query

Allows to query MCUmgr about bootloader used by device and various bootloader parameters. Use BOOTLOADER_INFO_QUERY_BOOTLOADER to get string representing bootloader name. For bootloader named "MCUboot" use BOOTLOADER_INFO_MCUBOOT_QUERY_MODE to get the bootloader mode. If query yields no answer, the response will contain an QUERY_YIELDS_NO_ANSWER error. Use BOOTLOADER_INFO_QUERY_ACTIVE_B0_SLOT to get the ID of an active B0 slot.

Throws