Node-red-node-serialport Buffer Length

Do you always know that eventually there will be a larger gap? If so then set the silence time so as to split on the larger gap, when any sequence of messages is complete, and accept the fact that sometimes you will get more than one message in a buffer. Then split the buffer in node red using the start char and buffer length, with the end char as a confirmation that you have a complete buffer.

1 Like