From a8b6175a1068633090e7baaae3f782d362bc68b5 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 16 Dec 2017 11:08:13 -0800 Subject: [PATCH] Note Serial.readBytesUntil() does not add terminator to the array See: https://github.com/arduino/reference-en/pull/280 --- Language/Functions/Communication/Serial/readBytesUntil.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Language/Functions/Communication/Serial/readBytesUntil.adoc b/Language/Functions/Communication/Serial/readBytesUntil.adoc index c3eba1d..b5eca10 100644 --- a/Language/Functions/Communication/Serial/readBytesUntil.adoc +++ b/Language/Functions/Communication/Serial/readBytesUntil.adoc @@ -14,7 +14,7 @@ title: Serial.readBytesUntil() [float] === Description -Serial.readBytesUntil() reads characters from the serial buffer into an array. The function terminates if the terminator character is detected, the determined length has been read, or it times out (see link:../settimeout[Serial.setTimeout()]). +Serial.readBytesUntil() reads characters from the serial buffer into an array. The function terminates if the terminator character is detected, the determined length has been read, or it times out (see link:../settimeout[Serial.setTimeout()]). The function returns the characters up to the last character before the supplied terminator. The terminator itself is not returned in the buffer. `Serial.readBytesUntil()` returns the number of characters read into the buffer. A 0 means no valid data was found.