read datas on serial port of palm
Hi,
The read methods of a DataInputStream (stream on serial port) in the cldc are blocking meanning, I think, that the method wait a byte before returns it (can wait a very long time if no byte is received !!!).
How can I know that a byte as been received before reading it ?
The available method give the numbers of bytes available without blocking.
Thanks
JLW
[413 byte] By [
jlwnet] at [2007-9-26 12:07:00]

[jlwnet],
Since no one has answered your posting for over 1 month, I will give this posting of yours a try.
One quick question for you - are you using the MIDP for Palm 1.0 reference implementation on your Palm device?
I am just trying to gather some information on your development environment before I analyse the problem that you are getting with the DataInputStream class of the java.io.* package.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/