This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Polling Mode in Serial library

Hello,

Can anyone point me to a good example for Polling mode using serial library?

I'm looking for an application in which I can poll the serial port for data. I went through API documentation and found that Serial library has a polling mode. Can anyone guide me in using that?

Parents Reply Children
  • It does print the received data in the first iteration. It gets stuck only in the second iteration of the loop.

    Btw, I'm going with polling mode because the functionality I'm trying to achieve is very trivial and doesn't need any complex queues and interrupt handlers. I just have to read data from both UARTs at will and store them. An example or code snippet describing the nuances of this polling mode would be very helpful. 

Related