Category

enum Category : Log.Category, Enum<Category>

A layer of the Mcu Manager library.

Each layer logs using a separate category, allowing log output to be filtered by the area of the library involved. The layers are declared bottom-up, from the raw transport to the firmware upgrade process built on top of it:

DFU        the firmware upgrade process
TRANSFER chunked upload and download
COMMAND a single Mcu Manager command and its response
PROTOCOL SMP framing: sequence numbers, matching responses to requests
TRANSPORT the connection carrying the SMP packets

Example

val sink = Log.Sink.Default { category, level ->
// Follow the upgrade, but only complain about the layers below it.
category == Category.DFU || level >= Log.Level.WARN
}

Entries

Link copied to clipboard

The transport layer, that is implementations of McuMgrTransport.

Link copied to clipboard

The SMP framing layer.

Link copied to clipboard

A single Mcu Manager command and its response, as sent by a McuManager.

Link copied to clipboard

Chunked upload and download, as performed by Uploader and its counterparts.

Link copied to clipboard

The firmware upgrade process, handled by FirmwareUpgradeManager and SUITUpgradeManager.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): Category

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.