/**
* Handles SerialPortEvents. The two types of SerialPortEvents that this program is registered
* to listen for are DATA_AVAILABLE and BI. During DATA_AVAILABLE the port buffer is read until
* it is drained, when no more data is available and 30ms has passed the method returns. When a
* BI event occurs the words BREAK RECEIVED are written to the messageAreaIn.
*/
public void serialEvent(final SerialPortEvent e){
if (adjustEndTime) {
endTime = System.currentTimeMillis() + (timeout * 1000);
}
if (e.getEventType() == SerialPortEvent.BI) {
breakInterrupt(state);
} else {
try {
serialEvent(this.state, is, e);
} catch (Exception ex) {
ExHandler.handle(ex);
}
}
}
AbstractConnection.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:elexis-3-core
作者:
评论列表
文章目录