AceUtils
0.3
Useful Arduino utilties which are too small as separate libraries, but complex enough to have external dependencies to other libraries.
|
An AceRoutine coroutine that reads lines (terminated by '\n' or '\r' from the Stream device, and write the InputLine message into the provided Channel. More...
#include <StreamLineReader.h>
Public Member Functions | |
StreamLineReader (ace_routine::Channel< InputLine > &channel, Stream &stream, char *buffer, int bufferSize) | |
Constructor. More... | |
int | runCoroutine () override |
An AceRoutine coroutine that reads lines (terminated by '\n' or '\r' from the Stream device, and write the InputLine message into the provided Channel.
The Stream will normally be the global Serial object.
Definition at line 39 of file StreamLineReader.h.
|
inline |
Constructor.
channel | The output Channel used to send an InputLine message back to the receiver. |
stream | The input stream, usually the global Serial object. |
buffer | The input character buffer. |
bufferSize | The size of the buffer, should be set large enough to hold the longest line without triggering buffer overflow. |
Definition at line 51 of file StreamLineReader.h.