Hello, I am new to forum, so please be indulgent.
I am trying to write a WPF in C# that by a press of a button automatically iterate trough all ports available, detects the arduino board via a 5 byte message handshake, and then connects to that port (more exactly, saves the port name for later use in my WPF).
So, I have tried this: Arduino Playground - HomePage
but did you notice it has like a buzzilion errors!?
After I've corrected the code and tryied again, however, it isn't connecting, I mean, it's not assigning the arduino port name to the variable! Which is for sure a design error, and this code is on official Arduino site!
Did I miss anything here? Is there another handshake? Can you guys please help me?
ps. please do not say:"why won't you connect manually?" Because everytime I am pluging off and in my board it has another port name. And I am using multiple computers, too.