Echo in Asyncstreams?

positrom2

Active Member
Licensed User
Longtime User
In bluetooth connection I send data by Astream.write:
B4X:
Dim buffer() As Byte
buffer1(0)=120&Chr(13)&Chr(10)
Astream.Write(buffer1)
end sub

Sub AStream_NewData (buffer() As Byte)
....
end sub
The problem is that the Newdata event is fired whenever Astream.Write is called.

BT echo is disabled in the module and the other BT communication side (µC) is closed for sending and receiving.

Does Asyncstreams echo the data sent from buffer() to the NewData event (since in sending and receiving buffer() seems to be involved), could it be disabled, or must there be some other reason?

Thanks for help, positrom2
 
Top