Function esp_idf_svc::hal::sys::esp_console_run

source ·
pub unsafe extern "C" fn esp_console_run(
    cmdline: *const i8,
    cmd_ret: *mut i32,
) -> i32
Expand description

@brief Run command line @param cmdline command line (command name followed by a number of arguments) @param[out] cmd_ret return code from the command (set if command was run) @return - ESP_OK, if command was run - ESP_ERR_INVALID_ARG, if the command line is empty, or only contained whitespace - ESP_ERR_NOT_FOUND, if command with given name wasn’t registered - ESP_ERR_INVALID_STATE, if esp_console_init wasn’t called