Hey all,
A small question, I'm using java's serial communication
(gnu.io.SerialPort) from Javascript, I have succesfully made a serial
connection but I would like to add an event listener to it, and have
it execute a javascript function when data becomes available in the
serial port. One of the things I've tried is the following code, but
this does not work. Does anyone here have experience with such a
thing? Any help would be greatly appreciated!
(javascript)
port.notifyOnDataAvailable = true;
port.addEventListener(function() {
print("Data is here");
});
Kind Regards,
Thijs.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino