Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
Provide command line interface. More...
Classes | |
class | CommandDelegate |
Command delegate class. More... | |
class | CommandHandler |
Command handler class. More... | |
Typedefs | |
typedef Delegate< void(String commandLine, CommandOutput *commandOutput)> | commandFunctionDelegate |
Command delegate function. More... | |
Enumerations | |
enum | VerboseMode { VERBOSE, SILENT } |
Verbose mode. More... | |
Variables | |
CommandHandler | commandHandler |
Global instance of CommandHandler. More... | |
Provide command line interface.
Command handler provides a common command line interface. CLI is available for the following remote access methods:
By default, CLI is disabled. Enable CLI by calling "commandProcessing" on the appropriate access class object, e.g.
Serial.commandProcessing(true)
Commands can be added to and removed from the command handler. Each command will trigger a defined Delegate.
A welcome message may be shown when a user connects and end of line character may be defined. An automatic "help" display is available.
typedef Delegate<void(String commandLine, CommandOutput* commandOutput)> commandFunctionDelegate |
Command delegate function.
commandLine | Command line entered by user at CLI, including command and parameters |
commandOutput | Pointer to the CLI print stream |
enum VerboseMode |
CommandHandler commandHandler |
Global instance of CommandHandler.