Android Question astream.write

gezueb

Active Member
Licensed User
Longtime 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

Active Member
Licensed User
Longtime 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?
 
Upvote 0

gezueb

Active Member
Licensed User
Longtime 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
 
Upvote 0
Top