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.