Browse Source

add:com口读取工具

master
zhangzq 3 weeks ago
parent
commit
383fe20168
  1. 2
      acs/nladmin-system/nlsso-server/src/main/java/org/nl/common/utils/ComPortUtil.java

2
acs/nladmin-system/nlsso-server/src/main/java/org/nl/common/utils/ComPortUtil.java

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

Loading…
Cancel
Save