Skip to content

Commit 0ff7cf4

Browse files
authored
Merge pull request #508 from per1234/gettimeout
Document Stream.getTimeout()
2 parents 0b4372d + 3945786 commit 0ff7cf4

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed
+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
title: Serial.getTimeout()
3+
---
4+
5+
6+
7+
8+
= Serial.getTimeout()
9+
10+
11+
// OVERVIEW SECTION STARTS
12+
[#overview]
13+
--
14+
15+
[float]
16+
=== Description
17+
`Serial.getTimeout()` returns the timeout value set by `Serial.setTimeout()`.
18+
19+
`Serial.getTimeout()` inherits from the link:../../stream[Stream] utility class.
20+
[%hardbreaks]
21+
22+
23+
[float]
24+
=== Syntax
25+
`_Serial_.getTimeout()`
26+
27+
[float]
28+
=== Parameters
29+
None
30+
31+
[float]
32+
=== Returns
33+
The timeout value set by `Serial.setTimeout()` (unsigned long)
34+
35+
--
36+
// OVERVIEW SECTION ENDS
37+
38+
39+
// HOW TO USE SECTION STARTS
40+
[#howtouse]
41+
--
42+
43+
--
44+
// HOW TO USE SECTION ENDS
45+
46+
47+
// SEE ALSO SECTION
48+
[#see_also]
49+
--
50+
51+
[float]
52+
=== See also
53+
54+
[role="language"]
55+
* #LANGUAGE# link:../../stream[stream]
56+
* #LANGUAGE# link:../../stream/streamsettimeout[stream.setTimeout()]
57+
* #LANGUAGE# link:../../stream/streamgettimeout[stream.getTimeout()]
58+
59+
--
60+
// SEE ALSO SECTION ENDS
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Stream.getTimeout()
3+
---
4+
5+
6+
7+
8+
= getTimeout()
9+
10+
11+
// OVERVIEW SECTION STARTS
12+
[#overview]
13+
--
14+
15+
[float]
16+
=== Description
17+
`getTimeout()` returns the timeout value set by `setTimeout()`. This function is part of the Stream class, and is called by any class that inherits from it (Wire, Serial, etc). See the link:../../stream[Stream class] main page for more information.
18+
[%hardbreaks]
19+
20+
21+
[float]
22+
=== Syntax
23+
`stream.getTimeout()`
24+
25+
26+
[float]
27+
=== Parameters
28+
None
29+
30+
[float]
31+
=== Returns
32+
The timeout value set by `stream.setTimeout()` (unsigned long)
33+
34+
--
35+
// OVERVIEW SECTION ENDS
36+
37+
38+
// HOW TO USE SECTION STARTS
39+
[#howtouse]
40+
--
41+
42+
--
43+
// HOW TO USE SECTION ENDS

0 commit comments

Comments
 (0)