Go Down

Topic: serialEvent with software serial (Read 937 times) 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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131