cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
How read serial without consume byte
How read serial without consume byte
May 29, 2015 at 4:58pm UTC
Albuquerster
(50)
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 UTC
koothkeeper
(429)
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.