#include <uuid/console.h>
Create a std::shared_ptr<uuid::console::Commands>
and populate it
with the commands to be available on the shell.
Create a std::shared_ptr<uuid::console::Shell>
referencing the
Serial
stream and the commands list. Call start()
on the
instance and then uuid::console::Shell::loop_all()
regularly. (The
static set of all shells will retain a copy of the shared_ptr
until
the shell is stopped.)
Log messages are written as
output to the shell automatically. Call log_level()
on the shell to
change the log level.
.. literalinclude:: ../examples/DigitalIO.cpp
.. literalinclude:: ../examples/DigitalIO_output.txt :language: console
.. literalinclude:: ../examples/WiFi.cpp
.. literalinclude:: ../examples/WiFi_output.txt :language: console