adding telnet

This commit is contained in:
philippe44
2020-02-03 13:48:19 -08:00
parent 8ddd5a58f3
commit 49b9700e6d
12 changed files with 476 additions and 14 deletions

View File

@@ -226,14 +226,14 @@ void run_command(char * line){
esp_err_t err = esp_console_run(line, &ret);
if (err == ESP_ERR_NOT_FOUND) {
printf("Unrecognized command\n");
ESP_LOGE(TAG,"Unrecognized command: %s\n", line);
} else if (err == ESP_ERR_INVALID_ARG) {
// command was empty
} else if (err == ESP_OK && ret != ESP_OK) {
printf("Command returned non-zero error code: 0x%x (%s)\n", ret,
ESP_LOGW(TAG,"Command returned non-zero error code: 0x%x (%s)\n", ret,
esp_err_to_name(err));
} else if (err != ESP_OK) {
printf("Internal error: %s\n", esp_err_to_name(err));
ESP_LOGE(TAG,"Internal error: %s\n", esp_err_to_name(err));
}
}
static void * console_thread() {