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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -