BulldogLowell:
Example below eliminates this nonsense:recvWithStartEndMarkers();
printNewData();
in favor of a function that will tell you that you've received something
Why is my stuff "nonsense"?
My code provides an indicator when something is received.
I am not saying mine is the only way to do it - but I don't think it is fundamentally different to yours. And my code was written to work with the Arduino functions that less experienced users are likely to be familiar with.
...R