P positrom2 Active Member Licensed User Longtime User Jul 1, 2012 #1 In bluetooth connection I send data by Astream.write: Code: Copy 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
In bluetooth connection I send data by Astream.write: Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Jul 2, 2012 #2 AsyncStreams doesn't echo anything. The data is coming from the other device (assuming that you initialized AsyncStreams correctly). Upvote 0
AsyncStreams doesn't echo anything. The data is coming from the other device (assuming that you initialized AsyncStreams correctly).