DefaultManager
Default command group manager.
Properties
Link copied to clipboard
On supported devices this mode reboots the device into a bootloader or firmware loader mode.
Link copied to clipboard
This mode (default) reboots the device to the application.
Link copied to clipboard
For bootloader with name "MCUboot" returns the bootloader mode.
Link copied to clipboard
For bootloader with name "MCUboot" returns the id of a b0 slot with higher version.
Link copied to clipboard
When used as query in bootloaderInfo command, returns string representing bootloader name.
Functions
Link copied to clipboard
Reads OS/Application Info (synchronous).
open fun appInfo(@Nullable format: @Nullable String, @NotNull callback: @NotNull McuMgrCallback<McuMgrAppInfoResponse>)
Reads OS/Application Info (asynchronous).
Link copied to clipboard
@NotNull
Reads the Bootloader info (synchronous).
open fun bootloaderInfo(@Nullable query: @Nullable String, @NotNull callback: @NotNull McuMgrCallback<McuMgrBootloaderInfoResponse>)
Reads the Bootloader info (asynchronous).
Link copied to clipboard
Link copied to clipboard
Set the console echo on the device (synchronous).
Link copied to clipboard
@NotNull
Format a Date and a TimeZone into a String which McuManager will accept.
Link copied to clipboard
Echo a string (synchronous).
open fun echo(@Nullable echo: @Nullable String, @NotNull callback: @NotNull McuMgrCallback<McuMgrEchoResponse>)
Echo a string (asynchronous).
Link copied to clipboard
Get the group ID for this manager.
Link copied to clipboard
Get the transporter's scheme.
Link copied to clipboard
Get the transporter.
Link copied to clipboard
Get memory pool statistics from the device (synchronous).
Get memory pool statistics from the device (asynchronous).
Link copied to clipboard
Reads McuMgr parameters (synchronous).
Reads McuMgr parameters (asynchronous).
Link copied to clipboard
Read the date and time on the device (synchronous).
Read the date and time on the device (asynchronous).
Link copied to clipboard
Reset the device (synchronous).
open fun reset(bootMode: Int, force: Boolean, @NotNull callback: @NotNull McuMgrCallback<McuMgrOsResponse>)
Reset the device (asynchronous).
Link copied to clipboard
@NotNull
@NotNull
Send data synchronously using the transporter.
open fun <T : McuMgrResponse?> send(data: @NotNull Array<Byte>, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
open fun <T : McuMgrResponse?> send(data: @NotNull Array<Byte>, timeout: Long, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
Send data asynchronously using the transporter.
@NotNull
@NotNull
@NotNull
@NotNull
Send synchronous Mcu Manager command.
open fun <T : McuMgrResponse?> send(op: Int, commandId: Int, @Nullable payloadMap: @Nullable Map<String, Any>, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
open fun <T : McuMgrResponse?> send(op: Int, commandId: Int, @Nullable payloadMap: @Nullable Map<String, Any>, timeout: Long, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
open fun <T : McuMgrResponse?> send(op: Int, flags: Int, sequenceNum: Int, commandId: Int, @Nullable payloadMap: @Nullable Map<String, Any>, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
open fun <T : McuMgrResponse?> send(op: Int, flags: Int, sequenceNum: Int, commandId: Int, @Nullable payloadMap: @Nullable Map<String, Any>, timeout: Long, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
Send an asynchronous Mcu Manager command.
Link copied to clipboard
Sets the upload MTU.
Link copied to clipboard
Parse a date string returned by a McuMgr response.
Link copied to clipboard
Get task statistics from the device (synchronous).
Get task statistics from the device (asynchronous).
Link copied to clipboard
@NotNull
Write the date and time on the device (synchronous).
open fun writeDatetime(@Nullable date: @Nullable Date, @Nullable timeZone: @Nullable TimeZone, @NotNull callback: @NotNull McuMgrCallback<McuMgrOsResponse>)
Write the date and time on the device (asynchronous).