Detect automatically serial ports available

Hi all! I'm using Processing for a school project, and while doing my program i needed to do a dialog window which should have a multiple choice with every serial port currently available in the PC. So, how can i obtain this information? When i try using Serial.list()[1] without my Arduino connected the program crashes. I've searched but i couldn't find anything! Can you please help me? Thanks in advance.

Tagged:

Answers

  • It was stupid from me. I reached to obtain the length of this array with Serial.list().length. Sorry ;)

Sign In or Register to comment.