For now, if a valid message is prefixed with a partial header, it is not read. For instance, if 0xFF is received three times in a row for protocol 1 or four times for protocol 2.
If this happens regularly, we should consider to read the incoming data as with a sliding window. In this case, the oldest byte would be removed and the data analysed again.
For now, if a valid message is prefixed with a partial header, it is not read. For instance, if 0xFF is received three times in a row for protocol 1 or four times for protocol 2.
If this happens regularly, we should consider to read the incoming data as with a sliding window. In this case, the oldest byte would be removed and the data analysed again.