esp-idf/examples/system/console
Ivan Grokhotkov ef9e89062a
console: add log_level command to the example
This allows calling esp_log_level_set function from the console.
Together with CONFIG_LOG_MAXIMUM_LEVEL option, this allows enabling
logs from different tags at run time.
2022-07-15 14:51:05 +02:00
..
advanced console: add log_level command to the example 2022-07-15 14:51:05 +02:00
advanced_usb_cdc tools: Increase the minimal supported CMake version to 3.16 2022-06-01 06:35:02 +00:00
basic docs: changes docs supported targets tables 2022-07-14 08:26:32 +08:00
README.md examples: console: add a readme with an overview of examples 2022-05-04 11:34:07 +02:00

Console examples

(See the README.md file in the upper level 'examples' directory for more information about examples.)

Examples in this directory illustrate the usage of the Console Component to create an interactive shell on the ESP chip.

basic example

This example illustrates high-level Read-Eval-Print Loop API (esp_console_repl).

This example can be used with UART, USB_OTG or USB_SERIAL_JTAG peripherals. It works on all ESP chips.

It is the recommended starting point when getting familiar with console component.

advanced example

This example illustrates lower-level APIs for line editing and autocompletion (linenoise), argument parsing (argparse3) and command registration (esp_console).

These APIs allow for a lot of flexibility when building a console application, but require more code to be written.

While these APIs allow for a console to be implemented over various interfaces (UART, USB, TCP), this example works with UART only.

advanced_usb_cdc example

This example is similar to the one above, except it works over USB CDC provided by USB_OTG peripheral.

Currently it can be used on ESP32-S2.