Serial.findUntil()
描述
Serial.findUntil()
可以從串列埠緩衝區讀取資料,並且找到目標字串,或者找到結尾字串。
若有找到目標字串,則回傳 true,一段時間內沒找到,則回傳 false。
Serial.findUntil()
是繼承於 Stream 類別。
語法
Serial.findUntil(target, terminal)
參數
target
: 要找的字串 (char string)
terminal
: 要找的結尾字串 (char string)
回傳
布林值 (true 或 false)
See also
- Stream
- Stream.findUntil()
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.