public void serialEvent(SerialPortEvent event) {
// byte[] readBuffer = new byte[2000];
try {
while (inStream.available() > 0) {
// inStream.read(readBuffer);
SerialMonitor.display(String.valueOf((char) inStream.read()));
}
// SerialMonitor.display(new String(readBuffer));
} catch (IOException ioe) {
System.out.println("Exception " + ioe);
ioe.printStackTrace();
}
}
CommPortUtils.java 文件源码
java
阅读 78
收藏 0
点赞 0
评论 0
项目:Brino
作者:
评论列表
文章目录