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