SerialComUSB scu = new SerialComUSB(null, null);
final int usbVidToMatch = 0x0483;
final int usbPidToMatch = 0x5740;
final String serialNumber = "002b00355741570c20373135";
String[] discoverdComPorts = scu.findComPortFromUSBAttributes(usbVidToMatch, usbPidToMatch, serialNumber);
for (int i = 0; i < discoverdComPorts.length; i++) {
System.out.println(discoverdComPorts[i]);
}
--
You received this message because you are subscribed to the Google Groups "SerialPundit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to SerialPundit...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/SerialPundit/ad62d957-e3db-4d66-9f4c-84149c4927cao%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to Serial...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to SerialPundit...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/SerialPundit/42b37d46-4430-41e4-8152-05dde0a4f564o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/SerialPundit/42b37d46-4430-41e4-8152-05dde0a4f564o%40googlegroups.com.