Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在正常操作期间检测串行端口的移除或插入?我在我的 Java Swing 应用程序中使用 jssc 库。
我知道异常部分,但它不能根据条件工作。
我已经在评论中提到了这一点,但我会为将来可能偶然发现这个问题的任何人添加一个答案。
根据接受的答案“Java JSSC 库可以检测到丢失的连接吗?”
jssc 没有类似热插拔或设备移除的机制