예제 #1
0
 @Override
 public synchronized void close() {
   super.close();
   incoming_.close();
   outgoing_.close();
   ioio_.closeUart(uartNum_);
   if (rxPinNum_ != IOIO.INVALID_PIN) {
     ioio_.closePin(rxPinNum_);
   }
   if (txPinNum_ != IOIO.INVALID_PIN) {
     ioio_.closePin(txPinNum_);
   }
 }
예제 #2
0
 @Override
 public void dataReceived(byte[] data, int size) {
   incoming_.write(data, size);
 }