Stream.h
Go to the documentation of this file.
35 unsigned long receiveTimeout = 1000; // number of milliseconds to wait for the next char before aborting timed read
51 void setTimeout(unsigned long timeout); // sets maximum milliseconds to wait for stream data, default is 1 second
56 bool find(char *target, size_t length); // reads data from the stream until the target string of given length is found
59 bool findUntil(char *target, char *terminator); // as find but search ends if the terminator string is found
61 bool findUntil(char *target, size_t targetLen, char *terminate, size_t termLen); // as above but search ends if the terminate string is found
74 size_t readBytesUntil( char terminator, char *buffer, size_t length); // as readBytes with terminator character
75 // terminates if length characters have been read, timeout, or if the terminator character detected
size_t readBytesUntil(char terminator, char *buffer, size_t length)
virtual int available()=0
int peekNextDigit()
long parseInt()
int timedRead()
bool findUntil(char *target, char *terminator)
bool find(char *target)
String readString()
virtual int read()=0
void setTimeout(unsigned long timeout)
size_t readBytes(char *buffer, size_t length)
String readStringUntil(char terminator)
int timedPeek()
float parseFloat()
virtual int peek()=0
virtual void flush()=0