How to close Rxtx serial port?

旧城冷巷雨未停 提交于 2019-12-01 10:13:10

问题


When retrieving available serial ports using the Rxtx library (see second example), the close() method will block, even if the port has been successfully opened.

How do I set a timeout on the close operation so I won't be stuck? Note that these methods are very poorly documented.

Note that I just found this relevant thread. I'll report back soon.

Update -

Here's another thread. Still no luck yet...

来源:https://stackoverflow.com/questions/8926705/how-to-close-rxtx-serial-port

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!