[Serial]
描述
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.
Serial.find()
inherits from the Stream utility class.
語法
Serial.find(target)
參數
target
: the string to search for (char string)
回傳
boolean
參考
語法參考主頁面
86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。