- public void open(CommPort c) throws IOException {
- reader.open(c);
- serial_out = c.getOutputStream();
- }
-
- public void connect(String port_name) throws IOException, NoSuchPortException, PortInUseException {
- comm_port = new RXTXPort(port_name);
- open(comm_port);