CmdArduino
CmdArduino copied to clipboard
Adding Description and Function Dumper
I've added a couple of additions to the library
One adds a "Description" to the command add and structure which allows you to add a description of the command.
The other one is a table dump which is useful for just dumping out what commands are available.
If anyone is interested, i'll do a PR
Hello @wx4cb , thanks for the feedback. The only thing I'd be worried about is the extra memory consumption for boards that are very memory constrained. Why don't you start the pull request and we can take a look at the code ? Cheers!
no probs. it shouldn't make that much difference as long as you're not using hundreds of commands lol.
I'm testing on an arduino micro and so far for just the handful of commands i have it's adequate. One thing i am probably going to do is to make it a specific length for the description of say 15 chars. that should be enough.
The table dump just steps through the linked list, just like the parser does and spits out the cmd name + description. Eventually i'm going to be putting the commands and descriptions in the EE-Prom I think.
Another thing i was thinking was making it case insensitive (which is trivial). My main goal for this is simple testing of routines.
The pull request is here: https://github.com/fakufaku/CmdArduino/pull/4