I have 2 Arduinos connected through their respective TX/RX 1.
One of the Arduinos is the sender and the other one is the receiver. I have the receiver print on the monitor (Serial.println) when there is a serial event on RX1. My issue is that there seems to be a lot of data that is sent on Serial1 from the sender at setup. Is there anything I can do about this?
I use serialEvent1() to handle the incoming messages.
I'll have a look at this link. It tried with basically a polling routine in the loop(), but it was still picking up the initial garbage. Not sure if the garbage is not just an artifact of the begin() function.
Now that you say it, I think it probably is noise. It is an intermittent problem. I could reliably reproduce it when I was at home. Then yesterday I was on the road and could not reproduce it at all, no garbage on the line then. Then tonight, I get some once in a while.
This looks like a job for .... legal tender! It says so right in this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!