NeuronRobotics / nrjavaserial

A Java Serial Port system. This is a fork of the RXTX project that uses in jar loading of the native code.
Other
345 stars 143 forks source link

Blocking thread (Thread-0) on MacOS using maven dependency. #87

Closed aroramayank2002 closed 4 years ago

aroramayank2002 commented 8 years ago

I am using only this much of code in public static void main: SerialConnector.serial = new NRSerialPort("/dev/tty.usbmodem1234", 9600); serial.connect(); serial.disconnect();

connect() method starts a thread (Thread-0) which doesn't terminate even after disconnect() or completion of main.

I tried to interrupt the thread but no luck. Also if I connect and disconnect repeatedly the thread keeps incrementing.

I am testing on MacOSX EL Capitan 10.11.5 using maven dependency.

I am able to fetch data from the serial device connected to MAC though.

madhephaestus commented 4 years ago

dependant on #163

madhephaestus commented 4 years ago

check 5.0.0 please