This example shows how to use the Cli
component to setup and run a command
line interface (CLI) on the ESP.
The Cli
and associated LineInput
classes support:
Build the project and flash it to the board, then run monitor tool to view serial output:
Plaintext
idf.py -p PORT flash monitor
(Replace PORT with the name of the serial port to use.)
(To exit the serial monitor, type Ctrl-]
.)
See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.
https://user-images.githubusercontent.com/213467/231188170-47f45641-fc44-4cc6-b673-506e643a5e02.mp4
Showing terminal resize and support for ctrl+l
:
https://github.com/esp-cpp/espp/assets/213467/54c362a7-99f2-4d8a-aa26-4498646f86e6
To create a project from this example, run:
idf.py create-project-from-example "espp/cli=1.0.10:example"