Skip to content

Commit b758a32

Browse files
committed
Document the length parameter of find()
Reference: https://github.com/arduino/ArduinoCore-API/blob/1.0.0/api/Stream.h#L74-L75
1 parent f3e868a commit b758a32

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Language/Functions/Communication/Serial/find.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,23 @@ title: Serial.find()
1414

1515
[float]
1616
=== 설명
17-
Serial.find() reads data from the serial buffer until the target string of given length is found. The function returns true if target string is found, false if it times out.
17+
Serial.find() reads data from the serial buffer until the target is found. The function returns true if target is found, false if it times out.
1818

1919
Serial.find() inherits from the link:../../stream[stream] utility class.
2020
[%hardbreaks]
2121

2222

2323
[float]
2424
=== 문법
25-
`Serial.find(target)`
25+
`Serial.find(target)` +
26+
`Serial.find(target, length)`
2627

2728
[float]
2829
=== 매개변수
2930
`target` : the string to search for (char)
3031

32+
`length` : length of the target (size_t)
33+
3134
[float]
3235
=== 반환
3336
`bool`

Language/Functions/Communication/Stream/streamFind.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ This function is part of the Stream class, and can be called by any class that i
2222

2323
[float]
2424
=== 문법
25-
`stream.find(target)`
25+
`stream.find(target)` +
26+
`stream.find(target, length)`
2627

2728

2829
[float]
@@ -31,6 +32,8 @@ This function is part of the Stream class, and can be called by any class that i
3132

3233
`target` : the string to search for (char)
3334

35+
`length` : length of the target (size_t)
36+
3437
[float]
3538
=== 반환
3639
`bool`

0 commit comments

Comments
 (0)