Skip to main content

otCliAppendResult

Function otCliAppendResult 

Source
pub unsafe extern "C" fn otCliAppendResult(aError: otError)
Expand description

Write a given error code as the result of previous command to the static CLI interpreter output.

Requires OPENTHREAD_CONFIG_CLI_STATIC_INTERPRETER_ENABLE.

This is intended for use by user-provided CLI command handlers.

If the @p aError is OT_ERROR_PENDING nothing will be outputted.

@param[in] aError Error code value.