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.