How read serial without consume byte

May 29, 2015 at 4:58pm
Hi!

I have to develop API that when arrive byte by serial communication, only consult the serial without consume byte of serial fifo.
Is it possible?

Thanks,
May 30, 2015 at 1:53pm
Depending on what class you use, it's possible. You can use putback() in istream for example:

http://www.cplusplus.com/reference/istream/istream/putback/
Topic archived. No new replies allowed.