2020-06-07 09:27:21 -07:00
|
|
|
package com.rusefi.autodetect;
|
|
|
|
|
|
|
|
public class PortDetectorSandbox {
|
2022-10-15 11:36:41 -07:00
|
|
|
public static void main(String[] args) throws InterruptedException {
|
2020-06-07 09:27:21 -07:00
|
|
|
while (true) {
|
2021-09-25 14:51:47 -07:00
|
|
|
String port = PortDetector.autoDetectSerial(null).getSerialPort();
|
2020-06-07 09:27:21 -07:00
|
|
|
System.out.println("Detected " + port);
|
|
|
|
|
2022-10-15 11:36:41 -07:00
|
|
|
Thread.sleep(1000);
|
2020-06-07 09:27:21 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|