We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48d574b commit 5976bcaCopy full SHA for 5976bca
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