@Override
        public void serialEvent(SerialPortEvent evt) {
            try {
                int available = inputStream.available();
                byte[] received = new byte[available];
                inputStream.read(received, 0, available);
                notifyListeners(received);
            }
            catch (IOException ex) {
                notifyListeners(ex);
            }
        }