Have a look at this tutorial on serial input basics - Example 3 (reply #2) seems to be what you need. You will need to set startMarker and endMarker to match your datastream - i.e. set them to 0x02 and 0x0D.
Have a look at this tutorial on serial input basics - Example 3 (reply #2) seems to be what you need. You will need to set startMarker and endMarker to match your datastream - i.e. set them to 0x02 and 0x0D.