Processing Forum
HI,
I have programmed a gui and I want to realize a button that checked, if the arduino is connected to the pc via USB(serial) and I used the Serial library.
When the Arduino is connected so it will pop up a window with the message OK, if the arduino isn't connected so it will pop up a window with "failed".
But I have a problem to realize this, because I don't know, if there are a function to check all the ports whether the arduino is connected.
I programmed this with the available() but this doesn't work see here:
So but this is not what I want, I would like to recognize whether my arduino is connected via usb( don't care which port), to my pc, is it possible?
Thanks a lot .