Question
Asked July 20 2017

Community Question

Hello All,

I have successfully set up a TCP server in order to communicate with a Processing client running on the same computer as EZ-Builder. I am able to send data (variables) from Processing to EZ-Builder by simply using a myClient.send(blahblah) command. However, I cannot figure out how to send information to the Processing client from EZ-Builder. 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 EZ-Builder is able to send information to this program, I just don't know how.

Am I missing something?

Thanks!
DJ Sures
Synthiam
July 20 2017
I think the easiest way to do what you're wanting to do is tell me and I'll give you an example:)
July 20 2017
Whoops, looks like DJ and I hit enter at the same time.

Follow his advice of providing more details on your goal. I tend to overthink solutions and DJ may have a simpler way of doing it.


Alan
July 20 2017
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.
July 20 2017
Excellent!
DJ Sures
Synthiam
July 20 2017
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