47 #define NO_IGNORE_CHAR '\x01' // a char not found in a valid ASCII numeric field 60 virtual int read() = 0;
61 virtual int peek() = 0;
71 bool find(uint8_t *target) {
return find ((
char *)target); }
75 bool find(uint8_t *target,
size_t length) {
return find ((
char *)target, length); }
78 bool find(
char target) {
return find (&target, 1); }
80 bool findUntil(
char *target,
char *terminator);
81 bool findUntil(uint8_t *target,
char *terminator) {
return findUntil((
char *)target, terminator); }
83 bool findUntil(
char *target,
size_t targetLen,
char *terminate,
size_t termLen);
84 bool findUntil(uint8_t *target,
size_t targetLen,
char *terminate,
size_t termLen) {
return findUntil((
char *)target, targetLen, terminate, termLen); }
101 size_t readBytesUntil(
char terminator,
char *buffer,
size_t length);
128 #undef NO_IGNORE_CHAR size_t readBytesUntil(char terminator, uint8_t *buffer, size_t length)
GLuint GLsizei GLsizei * length
size_t readBytesUntil(char terminator, char *buffer, size_t length)
virtual int available()=0
bool findUntil(uint8_t *target, char *terminator)
bool findUntil(uint8_t *target, size_t targetLen, char *terminate, size_t termLen)
long parseInt(LookaheadMode lookahead=SKIP_ALL, char ignore=NO_IGNORE_CHAR)
bool findUntil(char *target, char *terminator)
float parseFloat(char ignore)
unsigned long _startMillis
int peekNextDigit(LookaheadMode lookahead, bool detectDecimal)
unsigned long getTimeout(void)
float parseFloat(LookaheadMode lookahead=SKIP_ALL, char ignore=NO_IGNORE_CHAR)
size_t readBytes(uint8_t *buffer, size_t length)
bool find(uint8_t *target, size_t length)
long parseInt(char ignore)
bool find(uint8_t *target)
int findMulti(struct MultiTarget *targets, int tCount)
void setTimeout(unsigned long timeout)
size_t readBytes(char *buffer, size_t length)
String readStringUntil(char terminator)