Arduino-CommandParser
Arduino-CommandParser copied to clipboard
Complete command parser library for Arduino-compatibles.
- bugfixing parsing of negativ int numbers - negativ sign was ignored - adding ISO C style for limits.h to support compilers other than gcc
Most of the time I'm using commands that do not require a response. It would be really useful to save resources and have a nice API to provide a way...
When I register the example `parser.registerCommand("test", "sdiu", &cmd_test);` and parse the following Message: `test "Hello World" 13.23 -45 85` I get 45 for the interger instead of **-45** `Serial.print("int64: ");...
Unfortunately I can not parse numbers with the code on the Lolin32 via Bluetooth Command: TEST 123 ``` #include #include "BluetoothSerial.h" typedef CommandParser MyCommandParser; MyCommandParser parser; BluetoothSerial SerialBT; void cmd_test(MyCommandParser::Argument...
How is this code licensed? If I want to use it (as is) in my company, what licensing can I tell my legal dept this has?
```cpp src/main.cpp: In function 'void cmd_test(CommandParser::Argument*, char*)': src/main.cpp:10:58: error: call of overloaded 'println(int64_t&)' is ambiguous Serial.print("int64: "); Serial.println(args[2].asInt64); ^ In file included from /home/jrs/.platformio/packages/framework-arduino-avr/cores/arduino/Stream.h:26:0, from /home/jrs/.platformio/packages/framework-arduino-avr/cores/arduino/HardwareSerial.h:29, from /home/jrs/.platformio/packages/framework-arduino-avr/cores/arduino/Arduino.h:233, from src/main.cpp:1:...
Hi, it looks like there is no easy way to "registerCommand" which should call member function of same class. I've tried in this way: ` commandParser.registerCommand("help", "", &cmd_displayHelp);` where "cmd_displayHelp"...
The library assume it will be compiled including arduino.h when it's not necesary.