DvG_StreamCommand
|
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.
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.
Dennis van Gils (vangi.nosp@m.ls.d.nosp@m.ennis.nosp@m.@gma.nosp@m.il.co.nosp@m.m)
DvG_SerialCommand
.MIT License. See the LICENSE file for details.