Function esp_idf_sys::esp_console_run
source · pub unsafe extern "C" fn esp_console_run(
cmdline: *const c_char,
cmd_ret: *mut c_int,
) -> esp_err_t
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