You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+76-22Lines changed: 76 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,15 @@
1
1
# StaticSerialCommands
2
-
3
-
An Arduino library for parsing commands received over a serial port. Optimized for low dynamic memory usage, commands are stored in program memory. Typed arguments with strict input validation and friendly error messages. Commands can have subcommands.
2
+
An Arduino library for parsing commands received over a serial port. Optimized for low dynamic memory usage, commands are stored in program memory.
3
+
* Commands and arguments are separated by space.
4
+
* A command must end with a new line or carriage return character.
5
+
* Whitespaces are ignored when parsing a command.
6
+
* Double quotation marks can be used to pass string argument with spaces.
7
+
* Typed arguments with strict input validation.
8
+
* Friendly error messages for invalid input.
9
+
* Commands can have subcommands.
10
+
* Methods to print out commands with syntax and description.
4
11
5
12
## Quickstart
6
-
7
13
```cpp
8
14
#include"StaticSerialCommands.h"
9
15
@@ -25,18 +31,17 @@ void loop() {
25
31
serialCommands.readSerial();
26
32
}
27
33
```
28
-
29
34
## Commands
30
-
31
-
COMMAND macro syntax:
35
+
COMMAND macro is used to create Command object with data stored in program memory.
0 commit comments