SerialConnector.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:openhab-hdl 作者:
/**
 * Set the serial event handler
 */
private void setSerialEventHandler(SerialPortEventListener serialPortEventListenser) {
    try {
        // Add the serial port event listener
        serialPort.addEventListener(serialPortEventListenser);
        serialPort.notifyOnDataAvailable(true);
    } catch (TooManyListenersException tooManyListenersException) {
        logger.error("open(): Too Many Listeners Exception: ", tooManyListenersException);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号