Wiring/Stream.h
int timedRead()
uint16_t receiveTimeout
number of milliseconds to wait for the next char before aborting timed read
Definition: Wiring/Stream.h:162
void setTimeout(unsigned long timeout)
Set maximum milliseconds to wait for stream data, default is 1 second.
Definition: Wiring/Stream.h:49
virtual void flush()=0
virtual String readString(size_t maxLen)
Like readBytes but place content into a String
size_t readBytesUntil(char terminator, char *buffer, size_t length)
As readBytes() with terminator character.
virtual int available()=0
String readStringUntil(char terminator)
bool find(const char *target)
Read data from the stream until the target string is found.
Definition: Wiring/Stream.h:59
virtual size_t readBytes(char *buffer, size_t length)
Read chars from stream into buffer.
int peekNextDigit()
returns the next numeric digit in the stream or -1 if timeout
bool find(const char *target, size_t length)
Read data from the stream until the target string of given length is found.
Definition: Wiring/Stream.h:70
virtual int peek()=0
virtual int read()=0
bool findUntil(const char *target, const char *terminator)
As find() but search ends if the terminator string is found.
int timedPeek()
long parseInt()
Returns the first valid (long) integer value from the current position.