You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on windows 10 and i try to get all serial ports but my code just stop without error and even with a try catch i have no exception how i understand what just happend, here is my code :
public static void initialisePortsSerie() {
//Parcours et lance le traitement sur chaque port série
try {
System.out.println("Recherche des ports série");
SerialPort[] ports = SerialPort.getCommPorts();
System.out.println("Nombre de ports série détectés : " + ports.length);
if (ports.length == 0) {
return;
}
for (SerialPort port : ports) {
lecturePortUsb(port);
}
} catch (Exception e) {
System.out.println("Erreur lors de la recherche des ports série : " + e.getMessage());
}
}
The text was updated successfully, but these errors were encountered:
I'm on windows 10 and i try to get all serial ports but my code just stop without error and even with a try catch i have no exception how i understand what just happend, here is my code :
The text was updated successfully, but these errors were encountered: