Serial.find()
Description
Cette fonction lit les données du port série jusqu'à ce que la chaîne cible de la taille souhaitée soit trouvée. La fonction renvoie true si la chaîne cible a été trouvée, false si le temps limite a été dépassé. Voir la fonction Serial.setTimeout().
Syntaxe
Paramètres
- Serial: tout objet d'une classe utilisant la classe Serial
- target: la chaine cible à trouver (char)
Valeurs Renvoyées
- boolean: renvoie true si la chaîne cible a été trouvée, false si le temps limite a été dépassé.
※ Remarque:
Serial functions are not only used for the communication between an Arduino board and Serial Monitor of Arduino IDE but also used for the communication between:
- An Arduino board and other Arduino board
- An Arduino board and other sensors/devices
- An Arduino board and computer (any Serial software on computer)
Voir Également
- Langage: Arduino - Serial
- Langage: Serial.available()
- Langage: Serial.begin()
- Langage: Serial.findUntil()
- Langage: Serial.flush()
- Langage: Serial.parseFloat()
- Langage: Serial.parseInt()
- Langage: Serial.peek()
- Langage: Serial.print()
- Langage: Serial.println()
- Langage: Serial.read()
- Langage: Serial.readBytes()
- Langage: Serial.readBytesUntil()
- Langage: Serial.setTimeout()
- Langage: Serial.write()
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |