non-String via UDP
in
Contributed Library Questions
•
1 year ago
I have two working processing sketches that send UDP packets to my Arduino to control a servo.
One is set up so i press the Z and M key to move the servo back and forth.
the other is two buttons on a gui that serve the same purpose.
This works ok for controlling one item incrementally. Eventually this will end up being a control system for a robot. I want to be able to send an int or a long via UDP. Even if i have to pull them on the remote end by reading and bit shifting the individual bytes.
Mostly i would like to be able to send values from the processing side rather than having everything converted to it's ASCII values.
I know there has to be a way. I am just not experienced enough to figure it out.
1