Hello, I'm using the Serial library to write and read data from USB / Serial.
I have the need to read the data (input buffer) only in certain procedures of the program and not through "Astreams_NewData Event".
Example :
Astream.write ("Hello")
InData = (buffer value in serial)
Astream.write ("Date Recive")
Astream.write ("Hello")
NextSubName = "DataReceiveSub"
End Sub
Sub DataReceiveSub (Data() As Byte)
Astream.write ("Date Recive")
NextSubName = ...
End Sub
Sub ASTream_NewData(...)
CallSub2(NextSubName, Data)
End Sub