Android Question astream.write

gezueb

Member
Licensed User
I have a problem with a bluetooth com using AsyncStreamText. The instream from bluetooth is continous. It works perfectly until i try to write an outstream using astream.write. Then the instream is corrupted. Thanks for your help!
 

gezueb

Member
Licensed User
Thats what I was assuming. But is it possible that they use the same listener (newdata or new-text) or would it be wise to stop input listening while sending a response?
 

gezueb

Member
Licensed User
Solved the problem! It was my "write" that disturbed the device and changed the way it sent the stream so my parsing went haywire. B4a works like a charm. Thanks for your help!
Georg
 
Top