我想找...

搜尋

分享

目錄

Serial.findUntil()

[Serial]

描述

Serial.findUntil() reads data from the serial buffer until a target string of given length or terminator string is found.

The function returns true if the target string is found, false if it times out.

Serial.findUntil() inherits from the Stream utility class.

語法

Serial.findUntil(target, terminal)

參數

  • target : the string to search for (char string)
  • terminal : the terminal string in the search (char string)

回傳

boolean

參考


語法參考主頁面

86Duino 參考的文本是根據 知識共享署名-相同方式分享 3.0 許可證,部分文本是從 Arduino 參考 修改的。 參考中的代碼示例已發佈到公共領域。

返回頂端