I took the simple example from the data tutorial and was able to send the strings to the Arduino.
I sent the string received by the Arduino back to Processing to display it; I usually have a second serial port to monitor data but it (serial to USB adaptor) was not available at the moment.
It helps to be able to monitor the data received on the Arduino.
- another serial port with a USB to serial adaptor
- LCD
- network
- other
Note:
I did add a myPort.write('\n');
to terminate the string on the Processing side.
Arduino side:
Serial.readStringUntil() - Arduino Reference
Have fun!
:)