daily pastebin goal
72%
SHARE
TWEET

Callback Model

a guest Nov 25th, 2011 36 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 InputStream in = serialPort.getInputStream();
  2.                 OutputStream out = serialPort.getOutputStream();
  3.                                
  4.                 (new Thread(new SerialWriter(out))).start();
  5.                
  6.                 serialPort.addEventListener(new SerialReader(in));
  7.                 serialPort.notifyOnDataAvailable(true);
  8.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top