Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Parsing constant stream of bytes from Serial

$
0
0
bufferUntil() only defines the byte to detect before calling the serialEvent() callback.
I think you have to read the data in a buffer by chunks, perhaps accumulating all of it in a bigger buffer, and analyze the result to detect the separator pattern. Keep indexes on the start and the end, so you can extract the sequence of data after detecting this separator.

Viewing all articles
Browse latest Browse all 1768

Trending Articles