AsyncStream Problems

kwalter

Member
Licensed User
Longtime User
Hi Erel,
Ok here is my new Thread.

I'm new to B4A, how can I sort the output of the stream?
I send control commands to a Bluetooth device:

: F1 & Chr (13)
: F2 & Chr (13)
: a1 & Chr (13)
: D1 & Chr (13)
: a2 & Chr (13)
: D2 & Chr (13)

Each control character returns a response, which unfortunately currently not coming to the series but confused?

You say:
You should use AsyncStreams NewData event to handle the response.

How can i do that?

Greetings
kwalter
 

kwalter

Member
Licensed User
Longtime User
Hi,
Yes, I've read, but not really understand, because my English is not so good.

Greetings
kwalter
 
Upvote 0

kwalter

Member
Licensed User
Longtime User
Hi,
the order in which the data will be sent and in what order to read the answers.

I'm Assuming that the data is transmitted in the order in which I call the send function in the program.

Unfortunately, the answers come back in either a FIFO or LIFO function but arbitrarily.

Greetings
kwalter
 
Upvote 0
Top