Skip to content

Commit 52649ff

Browse files
author
Akshay Sharma
committed
ADD Serial.readStringUntil().adoc
1 parent 0887797 commit 52649ff

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
:source-highlighter: pygments
2+
:pygments-style: arduino
3+
:ext-relative: adoc
4+
5+
6+
= readStringUntil()
7+
8+
9+
// OVERVIEW SECTION STARTS
10+
[#overview]
11+
--
12+
13+
[float]
14+
=== Description
15+
`readStringUntil()` reads characters from the serial buffer into a string. The function terminates if it times out (see link:setTimeout{ext-relative}[setTimeout()]).
16+
17+
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{ext-relative}[Stream class] main page for more information.
18+
19+
[%hardbreaks]
20+
21+
22+
[float]
23+
=== Syntax
24+
`Serial.readString(terminator)`
25+
26+
27+
[float]
28+
=== Parameters
29+
`terminator` : the character to search for (`char`)
30+
31+
[float]
32+
=== Returns
33+
The entire string read from the serial buffer, until the terminator character is detected
34+
35+
--
36+
// OVERVIEW SECTION ENDS
37+
38+
39+
40+
41+
// HOW TO USE SECTION STARTS
42+
[#howtouse]
43+
--
44+
45+
[float]
46+
=== See also
47+
// Link relevant content by category, such as other Reference terms (please add the tag #LANGUAGE#),
48+
// definitions (please add the tag #DEFINITION#), and examples of Projects and Tutorials
49+
// (please add the tag #EXAMPLE#) ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄
50+
[role="language"]
51+
* #LANGUAGE# link:../serial{ext-relative}[Serial] +
52+
* #LANGUAGE# link:begin{ext-relative}[begin()] +
53+
* #LANGUAGE# link:end{ext-relative}[end()] +
54+
* #LANGUAGE# link:available{ext-relative}[available()] +
55+
* #LANGUAGE# link:read{ext-relative}[read()] +
56+
* #LANGUAGE# link:peek{ext-relative}[peek()] +
57+
* #LANGUAGE# link:flush{ext-relative}[flush()] +
58+
* #LANGUAGE# link:print{ext-relative}[print()] +
59+
* #LANGUAGE# link:println{ext-relative}[println()] +
60+
* #LANGUAGE# link:write{ext-relative}[write()] +
61+
* #LANGUAGE# link:serialEvent{ext-relative}[SerialEvent()] +
62+
* #LANGUAGE# link:../Stream/streamParsefloat{ext-relative}[Stream.parseFloat()]
63+
64+
--
65+
// HOW TO USE SECTION ENDS

0 commit comments

Comments
 (0)