Go Down

Topic: serialEvent with software serial (Read 1 time) previous topic - next topic

groundFungus

Is there a way to use serialEvent (or something like that) with a software serial port or is polling necessary? 

Charlie

PaulS

All that serialEvent() does is register a callback to be called at the end of loop. In that function, you still need to call Serial.available() to see how much data, if any, there is to process.

The end result is that it really offers no benefit over polling.
The art of getting good answers lies in asking good questions.

groundFungus

Thanks for the answer.  I was thinking that serialEvent was more like an interrupt.

Charlie

marcello.romani

I think serialEvent() is tied to hardware serial port(s).

Go Up