This is the receiving side test of the SerialPacket class for Arduino (see that repo for more infos)
This code is an experiment that is now replaced with a better byte-stuffing solution using Consistent Overhead Byte Stuffing (https://en.wikipedia.org/wiki/Consistent_Overhead_Byte_Stuffing). New version coming shortly to public view.