We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf9ad75 commit cdd72f9Copy full SHA for cdd72f9
cores/esp8266/Stream.h
@@ -38,6 +38,12 @@
38
readBytesBetween( pre_string, terminator, buffer, length)
39
*/
40
41
+// Arduino `Client: public Stream` class defines `virtual int read(uint8_t *buf, size_t size) = 0;`
42
+// This function is now imported into `Stream::` for `Stream::to*()`.
43
+// Other classes inheriting from `Stream::` and implementing `read(uint8_t *buf, size_t size)`
44
+// must consequently use `int` as return type, namely Hardware/SoftwareSerial, FileSystems...
45
+#define STREAM_READ_RETURNS_INT 1
46
+
47
class Stream: public Print {
48
protected:
49
unsigned long _timeout; // number of milliseconds to wait for the next char before aborting timed read
0 commit comments