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.