PaulS:
That transmit code is crap, too. It will NOT compile. The Serial.read() method does not take an argument.
My gosh, I'm just embarrassing myself. Sorry, I didn't use the copy/paste command, but was reading it off of my other computer, and was manually re-typing it here. In my touch typing, I guess signals crossed, and I got read/write confused. That should be Serial.write(), yes.
PaulS:
Serial.println(Serial.read());
The println() method converts the integer returned by the Serial.read() method to a string to send, and appends a carriage return and line feed.
Yes, I was printing out what was coming in from the Serial, which is the output that I attached.
I.E.
126
0
13
144
0
19
162
0
64
61
177
104
84
132
1
76
255
But, I believe that, instead of all this extra data, it should only be 76 that gets returned.
PaulS:
You should be using the Serial.write() method on the receiver.
I'm sorry, I don't understand this?
PaulS:
If you won't post your real code that you have compiled, linked, uploaded, and executed, I'm going to quit responding.
I've edited the code I posted to accurately reflect what I've been putting into my Arduinos. I apologize for the inconvenience.