jstonis

Results 12 comments of jstonis

OdysseusU, did you get the synchronous api to work? i wanted to attempt using it since I only need to keep reading a string of 13 characters from the Arduino.

Seems i do..so i only get one reading and thats it..i put the syncRead in the broadcastReceiver...not in a while loop just in there and then used tvappend to append...

So.i did that and it cuts my string..it produces the string but only a quarter of it...atrange..its still splitting up the data

Idk why it still splits it up..but it does. I set the size of the array to 14, because the string im expecting is A: 000 B: 000...so idk what...

So you really could use the async..but i.noticed i was losiglng data..so you read until you have 13 bytes..what if you receive extra bytes so its the next set of...

So you do lose a byte every min? Can i see how you did it

okay i tried something similar to this algorithm. in your arduino code, do you do serial.println..so theres a new line in the string, or just serial.print?

So can i just stick to the way you did it with serial.println in arduino?

byte [] data=new byte[0]; byte iNBbyte; ``` byte[] buffer=new byte[13]; int bufferSize=13; boolean isAck=false; public boolean isStartByte(byte firstChar){ if(firstChar=='A'){ return true; } else{ return false; } } public void clearBytes(){...

hm..its still not working.. i mean its not displaying the string!