pub unsafe extern "C" fn otDiagProcessCmdLine(
aInstance: *mut otInstance,
aString: *const c_char,
aOutput: *mut c_char,
aOutputMaxLen: usize,
) -> otError
Expand description
Processes a factory diagnostics command line.
The output of this function (the content written to @p aOutput) MUST terminate with \0
and the \0
is within the
output buffer.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aString A NULL-terminated input string. @param[out] aOutput The diagnostics execution result. @param[in] aOutputMaxLen The output buffer size.
@retval OT_ERROR_NONE The command is successfully process. @retval OT_ERROR_INVALID_ARGS The command is supported but invalid arguments provided. @retval OT_ERROR_NOT_IMPLEMENTED The command is not supported. @retval OT_ERROR_NO_BUFS The command string is too long.