Skip to content

Document Stream.getTimeout() #508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions Language/Functions/Communication/Serial/getTimeout.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
title: Serial.getTimeout()
---




= Serial.getTimeout()


// OVERVIEW SECTION STARTS
[#overview]
--

[float]
=== Description
`Serial.getTimeout()` returns the timeout value set by `Serial.setTimeout()`.

`Serial.getTimeout()` inherits from the link:../../stream[Stream] utility class.
[%hardbreaks]


[float]
=== Syntax
`_Serial_.getTimeout()`

[float]
=== Parameters
None

[float]
=== Returns
The timeout value set by `Serial.setTimeout()` (unsigned long)

--
// OVERVIEW SECTION ENDS


// HOW TO USE SECTION STARTS
[#howtouse]
--

--
// HOW TO USE SECTION ENDS


// SEE ALSO SECTION
[#see_also]
--

[float]
=== See also

[role="language"]
* #LANGUAGE# link:../../stream[stream]
* #LANGUAGE# link:../../stream/streamsettimeout[stream.setTimeout()]
* #LANGUAGE# link:../../stream/streamgettimeout[stream.getTimeout()]

--
// SEE ALSO SECTION ENDS
43 changes: 43 additions & 0 deletions Language/Functions/Communication/Stream/streamGetTimeout.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: Stream.getTimeout()
---




= getTimeout()


// OVERVIEW SECTION STARTS
[#overview]
--

[float]
=== Description
`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.
[%hardbreaks]


[float]
=== Syntax
`stream.getTimeout()`


[float]
=== Parameters
None

[float]
=== Returns
The timeout value set by `stream.setTimeout()` (unsigned long)

--
// OVERVIEW SECTION ENDS


// HOW TO USE SECTION STARTS
[#howtouse]
--

--
// HOW TO USE SECTION ENDS