Asked — Edited
Resolved Resolved by DJ Sures!

Send Data To Tcp Client

Hello All,

I have successfully set up a TCP server in order to communicate with a Processing client running on the same computer as ARC. I am able to send data (variables) from Processing to ARC by simply using a myClient.send(blahblah) command. However, I cannot figure out how to send information to the Processing client from ARC. I have tried sendUDP("127.0.0.1", 9000, "hello world") etc, with no luck.

By the way, when I use myClient.readString() and print it to the terminal in Processing, I see:

EZ-Builder v2017.06.23.00 on TTY0 >

So I know that ARC is able to send information to this program, I just don't know how.

Am I missing something?

Thanks!


ARC Pro

Upgrade to ARC Pro

ARC Pro is more than a tool; it's a creative playground for robot enthusiasts, where you can turn your wildest ideas into reality.

PRO
USA
#9  

Thanks, got it sorted out.

My issue was that when the client asked for data via print(variable) etc, I needed to strip the trailing carriage return before it became usable.

PRO
Synthiam
#11  

Ah yeah! Good call.

If you'd like, there is a plugin system as well. You can create a quick plugin that can communicate with your Processing project. Let me know how I can help