@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_); } }
@Override public void dataReceived(byte[] data, int size) { incoming_.write(data, size); }