We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f18653 commit 72ec72aCopy full SHA for 72ec72a
1 file changed
java/libraries/serial/src/processing/serial/Serial.java
@@ -349,6 +349,16 @@ public String readString() {
349
}
350
351
352
+ public String readStringUntil(int inByte) {
353
+ byte temp[] = readBytesUntil(inByte);
354
+ if (temp == null) {
355
+ return null;
356
+ } else {
357
+ return new String(temp);
358
+ }
359
360
+
361
362
public void serialEvent(SerialPortEvent event) {
363
if (event.getEventType() == SerialPortEvent.RXCHAR) {
364
int toRead;
0 commit comments