Servus
heut ist irgendwie der wurm drin.
Hab probleme beim empfangen vom com port.
ich bekomm immer ne null.pointer.exeption und seh ned warum
try {
ins = serss.getInputStream();
serss.addEventListener(new commListener());
}
catch (Exception e) { System.out.println("Comframe: "+e);}
serss.notifyOnDataAvailable(true);
try {
serss.setSerialPortParams(9600,
SerialPort.DATABITS_8,
SerialPort.STOPBITS_1 ,
SerialPort.PARITY_NONE);}
catch (UnsupportedCommOperationException e) {}
}
danke schon mal
mfg
heut ist irgendwie der wurm drin.
Hab probleme beim empfangen vom com port.
ich bekomm immer ne null.pointer.exeption und seh ned warum
try {
ins = serss.getInputStream();
serss.addEventListener(new commListener());
}
catch (Exception e) { System.out.println("Comframe: "+e);}
serss.notifyOnDataAvailable(true);
try {
serss.setSerialPortParams(9600,
SerialPort.DATABITS_8,
SerialPort.STOPBITS_1 ,
SerialPort.PARITY_NONE);}
catch (UnsupportedCommOperationException e) {}
}
danke schon mal
mfg