I have a couple of Astream.Write commands in sequence, one of them sending something different than the other. But both have to be sent back to back.
So I am doing This:
But it doesnt work. Soon as it encounters the Sleep(100), it returns and starts completeing everything that in the routine that called WriteCommand.
As you can imagine, this clobbers the serial data going on since its not really "waiting"
any ideas?
So I am doing This:
B4X:
WriteCommand
Do some things
Astream.Write(XXXXXX)
Sub WriteCommand
Do some things
Astream.Write(Result of some things)
Sleep(100)
End Sub
But it doesnt work. Soon as it encounters the Sleep(100), it returns and starts completeing everything that in the routine that called WriteCommand.
As you can imagine, this clobbers the serial data going on since its not really "waiting"
any ideas?