Finding the right serial port for Arduino

edited November 2015 in Arduino

Hi guys, in my project i have to communicate with arduino by the serial port. I'm using this code:

port = new Serial(this, Serial.list()[0], 115200);

But is there a way to find automatically the right port? because on others computers i have always to change the number of port, like 1 or 2. Is there a command that can do that?

Thank you

Answers

Sign In or Register to comment.