Sming - Open Source framework for high efficiency native ESP8266 development

User avatar
By fastlink30
#39499 i need to register some commands with the commandHandler.registerCommand(), and execute them passing only the string containing the commandline, not need to parse tcp/stream (looked on the sming source).

insert command is quite simple with commandHandler.registerCommand()

i think i must use the CommandExecutor.processCommandLine(stringcommand), but not understood how to initialize/how to use

also i not want CommandExecutor load the system default command automatically, and no standard prompt (Sming>) is possible disable this?

there are examples?

thanks
User avatar
By hreintke
#39525 No need to call commandExecutor or processcommand yourself.
If you register a command your callback function will be called by the framework.

You can see the example in the CommandProcessing_Debug example