I have foot pedal from endoscopy medical machine. And it use RS232 serial port. And i connected using USB Serial Controller. I found library RXTX that handle serial port.
I already try the sample code from RXTX wiki, like this :
But i wonder, how to handle event listener, when foot pedal is touched/clicked?
Please help me, thanks before