41 class Stream:
public Print
46 unsigned long _startMillis;
52 virtual int available() = 0;
53 virtual int read() = 0;
54 virtual int peek() = 0;
55 virtual void flush() = 0;
65 void setTimeout(
unsigned long
68 bool find(
const char *target);
69 bool find(uint8_t *target)
71 return find((
char *) target);
75 bool find(
const char *target,
size_t
77 bool find(
const uint8_t *target,
size_t length)
79 return find((
char *) target, length);
83 bool find(
char target)
85 return find (&target, 1);
88 bool findUntil(
const char *target,
89 const char *terminator);
90 bool findUntil(
const uint8_t *target,
const char *terminator)
92 return findUntil((
char *) target, terminator);
95 bool findUntil(
const char *target,
size_t targetLen,
const char *terminate,
97 bool findUntil(
const uint8_t *target,
size_t targetLen,
const char *terminate,
size_t termLen)
99 return findUntil((
char *) target, targetLen, terminate, termLen);
108 virtual size_t readBytes(
char *buffer,
size_t length);
109 virtual size_t readBytes(uint8_t *buffer,
size_t length)
111 return readBytes((
char *) buffer, length);
116 size_t readBytesUntil(
char terminator,
char *buffer,
118 size_t readBytesUntil(
char terminator, uint8_t *buffer,
size_t length)
120 return readBytesUntil(terminator, (
char *) buffer, length);
126 std::string readString();
127 std::string readStringUntil(
char terminator);
130 long parseInt(
char skipChar);
134 float parseFloat(
char skipChar);