Releases: CreativeRobotics/Commander
V4.2.3
V4.2.2
Updating just to fix a mangled release tag.
V4.2.0
Updates and bug fixes:
Added reloadCommands() function. This re-computes the command lengths so that command strings can be changed at run time. If the command list is declared as a non const, then the string and function pointers can be reassigned. In order to change a command string to one of a different length commander needs to recompute the command lengths, so this function needs to be called if a command string pointer is assigned to a string of a different length.
Added attachCommandArray() method similar to attachCommands but takes the array length as an argument instead of sizeof().
Added an extra help system. You can attach an array of strings. If this is attached and help has a payload it will try and match the payload to a command and print out the extra help in the array index that matches the command. Example 'help status' would print the extra help for the command 'status'.
Extra help availability is indicated in the help and query information.
Updated to inherit Arduino print class and replaced template methods with methods for the print class. Thanks to Louis Beaudoin of Embedded creations for lots of work on this and some other up coming features https://github.com/embedded-creations
Changed write() to add() to fix conflict with print class.
Added example showing reallocation of command Handler, command text and help text to different character arrays and functions.
Added example showing how to use one command to edit the help text and command text of another command stored as a String object.
Added example of a dynamically generated command list: A command can be used to create a custom submenu of items.
Added example of using a fixed length command array, and populating it with commands to create a bespoke menu of variable length.
Fixed getLength() to return a length in all circumstances.
Replaced NULL with '\0' when checking chars for null character.
Removed unused variables and fixed issue causing compiler warnings on platformIO and ESP boards.
Updated code manually from pull request by jclds139 to fix compilation issues (Thanks!)
V4.1.1
Fixed some issues with the last release getting a bit mangled.
Fixed some issues relating to the end of line character not working properly when set to anything except '\n'
Changed stripCR behaviour so that if the end of line character is set to the carriage return, stripCR is set to false.
V4.1.0
Added a user string method. The user can attach a String object to commander that will be printed out at the start of the help and query pages. This is to allow the user to incorporate their own product or device name, firmware version and other details like a web URL.
V4.0.1
Merge pull request to fix two compiler warnings on platformio.
Fix internal version number still at 3.3.0
Bump version number to 4.0.1
V4.0.0
Release 4.0.0 - Method Act.
Method CHAIN'O'RAMA! All methods that used to return void now return a *this reference allowing them to be chained.
Changed some configuration commands such as setCommentChar to commentChar and overloaded them so the same function name can be used to set or get the property.
**Quite a few method names have changed so there is better API consistency.
Added setPending(). If you directly write commands to the bufferString, call setPending() before update to tell Commander there is a command waiting there.
Updated keyword list.
Fixed some errors in examples.
V3.2.0
Added quick command system to compliment quick set and get.
Fixed an issue with containsTrue/false etc only checking the first item in the payload.
Added a portless methd of of initialising so Commander can be used without a Stream object.
Fixed some issues.
Version 3.1.1
Fixed an issue with wrong slash direction in #include that prevented compilation under Linux.
Version 3.1.0
Updated examples and added examples to match the 'getting started' wiki page.
Minor edits to code.