问题
I know serial ports are not so good but still a little hope... I am using JSSC library for communication.
Does the JSSC library have a method to detect when an established connection is lost due to hardware removal?
回答1:
The jssc does not have hot plug or device removal like mechanism. Give details of your hardware and we may think of some work around.
来源:https://stackoverflow.com/questions/40629180/can-java-jssc-library-detect-a-lost-connection