Go Down  Topic: sending integers from arduino to
processing (Read 1 time) previous topic - next topic  So I'm
trying to send some ints from arduino to procesing. I've used
the serial.write() and printInteger() functions and the serial
monitor shows that the data is good. The problem comes in
processing.  I've tried getting the data as a string, or getting
it byte by byte. Reading the values as strings gives me some
errors in the data (it tends to drop a bit from time to time). I
can get it by reading each byte and then reconstructing the int
from it's component bytes. But that only works if I know how big
the int coming through is going to be. The problem is that I'm
never sure just how big the value coming in is going to be.  Can
I get some help on a simple querying system? I'd like to send
the arduino a character, and have it send back a packet of 4 or
5 integers of varying sizes. I have the arduino setup to receive
a byte and write the values to the serial port, but I can't get
good data in processing. Tha