show

open fun show(@Nullable logName: @Nullable String, @Nullable minIndex: @Nullable Long, @Nullable minTimestamp: @Nullable Date, @NotNull callback: @NotNull McuMgrCallback<McuMgrLogResponse>)

Show logs from a device (asynchronous).

Logs will be shown from the log of the name provided, or all if none. Additionally, logs will only be shown from after the minIndex and minTimestamp if provided (Note: the minimum timestamp will only be used if the minimum index is also provided).

This method will only provide a portion of the logs, and return the next index to pull logs from. Therefore, in order to pull all the logs from a device, you may have to call this method multiple times.

Parameters

logName

the name of the log to read. If null, the device will report from all logs.

minIndex

the minimum index to pull logs from. If null, the device will read from the oldest log.

minTimestamp

the minimum timestamp to pull logs from. This parameter is only used if it and minIndex are not null.

callback

the response callback.


@NotNull
open fun show(@Nullable logName: @Nullable String, @Nullable minIndex: @Nullable Long, @Nullable minTimestamp: @Nullable Date): @NotNull McuMgrLogResponse

Show logs from a device (synchronous).

Logs will be shown from the log of the name provided, or all if none. Additionally, logs will only be shown from after the minIndex and minTimestamp if provided (Note: the minimum timestamp will only be used if the minimum index is also provided).

This method will only provide a portion of the logs, and return the next index to pull logs from. Therefore, in order to pull all the logs from a device, you may have to call this method multiple times.

Return

The response.

Parameters

logName

the name of the log to read. If null, the device will report from all logs.

minIndex

the minimum index to pull logs from. If null, the device will read from the oldest log.

minTimestamp

the minimum timestamp to pull logs from. This parameter is only used if it and minIndex are not null.

Throws