android - Reading arduino response -


i writing code communicate arduino. able write msg on arduino not able read response.

i writing this:

.....     outputstream.write(msgbuffer);     int bytesavailable = inputstream.available();    if(bytesavailable > 0){             byte[] packetbytes = new byte[bytesavailable];             inputstream.read(packetbytes); .... 

the variable bytesavailable 0.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -