File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ class Stream : public Print {
61
61
Stream () {
62
62
_timeout = 1000 ;
63
63
}
64
+ virtual ~Stream () {}
64
65
65
66
// parsing methods
66
67
@@ -105,8 +106,8 @@ class Stream : public Print {
105
106
float parseFloat (LookaheadMode lookahead = SKIP_ALL, char ignore = NO_IGNORE_CHAR);
106
107
// float version of parseInt
107
108
108
- size_t readBytes (char *buffer, size_t length); // read chars from stream into buffer
109
- size_t readBytes (uint8_t *buffer, size_t length) {
109
+ virtual size_t readBytes (char *buffer, size_t length); // read chars from stream into buffer
110
+ virtual size_t readBytes (uint8_t *buffer, size_t length) {
110
111
return readBytes ((char *)buffer, length);
111
112
}
112
113
// terminates if length characters have been read or timeout (see setTimeout)
@@ -120,7 +121,7 @@ class Stream : public Print {
120
121
// returns the number of characters placed in the buffer (0 means no valid data found)
121
122
122
123
// Arduino String functions to be added here
123
- String readString ();
124
+ virtual String readString ();
124
125
String readStringUntil (char terminator);
125
126
126
127
protected:
You can’t perform that action at this time.
0 commit comments