Hi,
Receiving from port
and buffer is always different length, the string "test" sent is received letter by letter in this sub. Sometime 2 letters together, and later others one by one.
How to be sure that whole the reply is fully received ?
Receiving from port
B4X:
Sub AStream_NewData (Buffer() As Byte)
ProgressDialogHide
Dim a As String
a = BytesToString(Buffer, 0, Buffer.Length, "UTF8")
and buffer is always different length, the string "test" sent is received letter by letter in this sub. Sometime 2 letters together, and later others one by one.
How to be sure that whole the reply is fully received ?