How can I wait data to be send using JSSC library

130 Views Asked by At

I'm using JSSC library for serial communication under Windows (if it's matter).

I need to know, how I can be sure that the data is sent to the device and I can close the serial port safe?

Note: Data can be with different size and in my case, a function like Thread.sleep() will not work.

0

There are 0 best solutions below