DvG_StreamCommand
A lightweight Arduino library to listen for commands over a stream.

It provides two classes to allow listening to a stream, such as Serial or Wire, for incoming commands (or data packets in general) and act upon them. Class DvG_StreamCommand will listen for ASCII commands, while class DvG_BinaryStreamCommand will listen for binary commands.

Usage

Method available() should be called repeatedly to poll for characters or bytes incoming to the stream. It will return true when a new completely received command is ready to be processed by the user. See the examples StreamCommand.ino and BinaryStreamCommand.ino.

Author

Dennis van Gils (vangi.nosp@m.ls.d.nosp@m.ennis.nosp@m.@gma.nosp@m.il.co.nosp@m.m)

Version

Changelog

  • v1.0.0 - Initial commit. This is the improved successor to DvG_SerialCommand.

License

MIT License. See the LICENSE file for details.