25 #ifndef SERVICES_COMMANDPROCESSING_COMMANDHANDLER_H_ 26 #define SERVICES_COMMANDPROCESSING_COMMANDHANDLER_H_ 28 #include "../Wiring/WiringFrameworkIncludes.h" 29 #include "CommandDelegate.h" 30 #include "../Wiring/WHashMap.h" 31 #include "SystemClock.h" 33 #include "HardwareSerial.h" 142 char currentEOL =
'\r';
143 String currentWelcomeMessage;
CommandHandler()
Instantiate a CommandHandler.
String getCommandPrompt()
Get the command line prompt.
void setVerboseMode(VerboseMode reqVerboseMode)
Set the verbose mode.
Silent mode.
Definition: CommandHandler.h:39
VerboseMode
Verbose mode.
Definition: CommandHandler.h:37
Verbose mode.
Definition: CommandHandler.h:38
void setCommandWelcomeMessage(String reqWelcomeMessage)
Set the welcome message.
The string class.
Definition: WString.h:104
char getCommandEOL()
Get the end of line character.
void setCommandEOL(char reqEOL)
Set the end of line character.
bool registerCommand(CommandDelegate reqDelegate)
Add a new command to the command handler.
CommandDelegate getCommandDelegate(String commandString)
Get the command delegate for a command.
bool unregisterCommand(CommandDelegate reqDelegate)
Remove a command from the command handler.
Definition: CommandOutput.h:17
Command handler class.
Definition: CommandHandler.h:43
CommandHandler commandHandler
Global instance of CommandHandler.
Command delegate class.
Definition: CommandDelegate.h:29
void registerSystemCommands()
Register default system commands.
VerboseMode getVerboseMode()
Get the verbose mode.
void setCommandPrompt(String reqPrompt)
Set the command line prompt.
String getCommandWelcomeMessage()
Get the welcome message.