我想找...

搜尋

分享

目錄

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

參考


語法參考主頁面

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.

返回頂端