How to exchange data between a C# application and a processing sketch

Hello folks,

I am programming an application in C# (C Sharp) in Visual Studio 2015 for home automation. I would like to communicate with processing from this application. Processing is used to play videos on LED strips.

Is there an API? I need to exchange simple commands like "play", "pause", "all_LEDs_red", "all_LEDs_green".

How do I exchange data? Should I use a virtual COM-Port?

Ciao, gonz

Tagged:

Answers

  • The easiest way is to use serial communication. You'll need a serial library on the processing side and System.IO.Ports.SerialPort class on the C# side, I believe.

  • Thank you for your answer. This renders my first idea as a possible option.

Sign In or Register to comment.