reading serial port
I need read an scale serial port and show it in a JTextField.
I combined SimpleRead with a frame, but the reading is appearing wrong. i.e, if the data from scale is "015470" in the JtextField appear as "470 150".
Can anybody help me?
Here is the piece of code that do it.
==========================
byte[] readBuffer = new byte[6];
try {
while (inputStream.available() > 0) {
int numBytes = inputStream.read(readBuffer);
String lectura = new String(readBuffer);
pesot.setText(lectura);
===========================
Any advice?
Thanks.

