inputstream.available() is 0 always

后端 未结 3 694
感动是毒
感动是毒 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-11 17:10

    By using a PrintStream you are suppressing exceptions that you need to know about in any request/response scenario.

    Most probably you haven't even sent anything yet.

提交回复
热议问题