L
Lureon
Hi
I am attempting to write a serial port listener for J2ME (receive
message and echo it back). I have managed to get it working except for
1 strange problem. The fist time it sends a reply, there are some
garbage bytes in the stream.
Does anyone have any idea how to remove them. Flushing is no use as the
device connected to the port will receive the garbage which I don't
want.
J2ME OutputStream doesn't seem to have a .clear() method.
Any help would be appreciated.
Thanks
Duane
I am attempting to write a serial port listener for J2ME (receive
message and echo it back). I have managed to get it working except for
1 strange problem. The fist time it sends a reply, there are some
garbage bytes in the stream.
Does anyone have any idea how to remove them. Flushing is no use as the
device connected to the port will receive the garbage which I don't
want.
J2ME OutputStream doesn't seem to have a .clear() method.
Any help would be appreciated.
Thanks
Duane