I am trying to use the CMDmessanger library on my Arduino uno, and am facing an issue.
My issue starts right from the ArduinoController.ino example.
When i send the frequency command
The led starts blinking correctly, once per second.
But when I send a wrong command (basically a command without an argument)
The led just stops blinking. The state of the led depends on which state it was in when I sent the command.
I realised that, when I send the wrongly formatted command, it takes the frequency as 0.
Is there any method by which I can make sure that the command is received in the right format, before it is executed? Ideally I would love it if there is a method to know how many arguments were received, and I could call the readBoolArg, or other equivalent functions to retrieve the argument data.
I am planning on using this library for quite a few projects, and I don't want to be in a situation where things went wrong because there was not formatting check.
Thanks in advance.