This content has been marked as final. Show 3 replies
Doesn't mean much... do you actually have data to read?
Yes, Dear Freind..
i want to read data from inputstream, on serial port
In general, using available() method like this is not a good idea since the TX may not have written any bytes yet so available() must returrn zero. You would do better to just do a simple read() which will block until bytes are avaiable or until end of file.
Message was edited by: