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.
2 parents 2c8565f + fb3d93b commit 9466b03Copy full SHA for 9466b03
hardware/arduino/avr/cores/arduino/Stream.h
@@ -66,7 +66,8 @@ class Stream : public Print
66
// parsing methods
67
68
void setTimeout(unsigned long timeout); // sets maximum milliseconds to wait for stream data, default is 1 second
69
-
+ unsigned long getTimeout(void) { return _timeout; }
70
+
71
bool find(char *target); // reads data from the stream until the target string is found
72
bool find(uint8_t *target) { return find ((char *)target); }
73
// returns true if target string is found, false if timed out (see setTimeout)
0 commit comments