La flush() viene eseguita dopo i 2 comandi elencati sopra...
Per quanto riguarda i file di stream, vengono creati in questo modo
Il problema è perchè riesco ad inviare str.length() e non str.getBytes(Charset.forName("ASCII"))codice:SerialPort serialPort = (SerialPort) commPort; serialPort.setSerialPortParams( 9600,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_NONE); InputStream input = serialPort.getInputStream(); OutputStream out = serialPort.getOutputStream();