Go Down

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


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



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.


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



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

Go Up