@ -54,9 +54,11 @@ public class ComPortUtil {
if (bytesRead > 0) {
String msg = new String(buffer, 0, bytesRead);
System.out.println("--获取COM口信息--"+msg);
if (function != null){
function.apply(msg);
}
} catch (Exception e) {
e.printStackTrace();
} finally {