Browse Source

add:com口读取工具

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

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

@ -54,7 +54,9 @@ 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);
function.apply(msg); if (function != null){
function.apply(msg);
}
} }
} }
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save