How to receive a sequence of serial data with variable length efficiently
I have a method to receive a sequence of serial data message in a while loop. Each of them could be more than 100 bytes but less than 2048 bytes. Most of them are about 1000 bytes.