Skip to content

Commit 04efabb

Browse files
Update README.md
Fixed duplicate text again
1 parent f278293 commit 04efabb

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Commander is a system for handling commands sent over serial ports or other Stream objects.
22

3-
## Its designed to make it easy to create complex and powerful text based interfaces for controlling your sketch.
3+
## It is designed to make it easy to create complex and powerful text based interfaces for controlling your sketch.
44

55
# [Visit the wiki](https://github.com/CreativeRobotics/Commander/wiki)
66

@@ -10,18 +10,6 @@ Commander is attached to Stream object so it can be used with Serial ports, file
1010

1111
Commander can have up to three Stream objects connected at once, an input stream, output stream and auxiliary stream. As well as reading commands and passing them to the handler functions Commander can route or copy data to another port, echo data back to you and redirect or copy responses to a different port. When using SD Cards and the SDFat library, Commanders input Stream can be attached to one file to read commands, the output Stream can be attached to a second file for logging any responses generated by the command handler, and the aux stream can copy all those responses to a serial port.
1212

13-
Commander is designed so that the list of commands, handlers and help text are separate from the Commander object, this allows command lists to be shared between several instances of a Commander object, for example where the same command set needs to be availab# Commander is a system for handling commands sent over serial ports or other Stream objects.
14-
15-
## Its designed to make it easy to create complex and powerful text based interfaces for controlling your sketch.
16-
17-
# [Visit the wiki](https://github.com/CreativeRobotics/Commander/wiki)
18-
19-
It allows you to define a list of text commands, a function to handle each command, and some help text that can be displayed when the 'help' command is sent. All the work of reading the incoming stream data, identifying the appropriate function and calling the handler is done by the commander object. It will run on most Arduino boards but is more suited to devices with large memory.
20-
21-
Commander is attached to Stream object so it can be used with Serial ports, files on a SD cards, or Bluetooth Serial and other Stream based objects on wireless capable Arduinos such as the ESP32.
22-
23-
Commander can have up to three Stream objects connected at once, an input stream, output stream and auxiliary stream. As well as reading commands and passing them to the handler functions Commander can route or copy data to another port, echo data back to you and redirect or copy responses to a different port. When using SD Cards and the SDFat library, Commanders input Stream can be attached to one file to read commands, the output Stream can be attached to a second file for logging any responses generated by the command handler, and the aux stream can copy all those responses to a serial port.
24-
2513
Commander is designed so that the list of commands, handlers and help text are separate from the Commander object, this allows command lists to be shared between several instances of a Commander object, for example where the same command set needs to be available via USB and Bluetooth Serial. It also allows different command lists to be dynamically loaded so multiple command lists, and multiple Commander objects can be combined to produce hierarchical command structures.
2614

2715
Commands can be chained together in a single line and Commander incorporates a set of functions for extracting any payload that comes after a command and for sequentially parsing variables in the payload. It can also augment responses sent to its output and auxiliary Streams by adding prefix and postfix text, for example each line can be enclosed with opening and closing html tags, or prefixed with a command.

0 commit comments

Comments
 (0)