inputstream.available() is 0 always

后端 未结 3 682
感动是毒
感动是毒 2020-12-11 16:17

I have no idea of what is happening to my code. i am getting no errors and no response as well. I am writing the data to the serialport and waiting for the response by activ

3条回答
  •  有刺的猬
    2020-12-11 17:00

    To partially answer your question.

    From the javadocs

    The available method for class InputStream always returns 0.

    http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html#available()

    So that part at least is as expected

提交回复
热议问题