Function openthread_sys::otCliSetUserCommands

source ยท
pub unsafe extern "C" fn otCliSetUserCommands(
    aUserCommands: *const otCliCommand,
    aLength: u8,
    aContext: *mut c_void,
) -> otError
Expand description

Set a user command table.

@param[in] aUserCommands A pointer to an array with user commands. @param[in] aLength @p aUserCommands length. @param[in] aContext @p The context passed to the handler.

@retval OT_ERROR_NONE Successfully updated command table with commands from @p aUserCommands. @retval OT_ERROR_FAILED Maximum number of command entries have already been set.