Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ArduinoCore-avr
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ArduinoCore-avr
Commits
0fd65027
Commit
0fd65027
authored
Jul 18, 2016
by
Sandeep Mistry
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4718 from mattb5906/new-feature/stream-timeout-get-4680
Add getTimeout accessor method.
parents
8ae5b5f4
5976bcab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cores/arduino/Stream.h
cores/arduino/Stream.h
+2
-1
No files found.
cores/arduino/Stream.h
View file @
0fd65027
...
...
@@ -66,7 +66,8 @@ class Stream : public Print
// parsing methods
void
setTimeout
(
unsigned
long
timeout
);
// sets maximum milliseconds to wait for stream data, default is 1 second
unsigned
long
getTimeout
(
void
)
{
return
_timeout
;
}
bool
find
(
char
*
target
);
// reads data from the stream until the target string is found
bool
find
(
uint8_t
*
target
)
{
return
find
((
char
*
)
target
);
}
// returns true if target string is found, false if timed out (see setTimeout)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment