Serial.find()
描述
Serial.find()
可以从串列埠缓冲区读取资料,并且找到目标字串。假如有找到目标字串,则回传 true,一段时间内没找到目标字串,则回传 false。
Serial.find()
是继承于 Stream 类别。
语法
Serial.find(target)
参数
target
: 要找的字串 (char string)
回传
布林值 (true 或 false)
See also
- Stream
- Stream.find()
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.