is AsyncStreamsText available in B4J?
I have an Ansyncstreams serial connection fetching values from a weight scale.
Periodically - once an hour or so... the data being obtained from the scale and displayed in a label begins pulsing or flashing and appears out of sequence.
I've tried increasing the baud rate from 9600 to 19200 - with no change or improvement.
Would AsnycStreamsText mode alleviate this problem? (hope so)
I have an Ansyncstreams serial connection fetching values from a weight scale.
Periodically - once an hour or so... the data being obtained from the scale and displayed in a label begins pulsing or flashing and appears out of sequence.
I've tried increasing the baud rate from 9600 to 19200 - with no change or improvement.
Would AsnycStreamsText mode alleviate this problem? (hope so)
B4X:
Sub AStream_NewData (Buffer() As Byte)
Dim s As String = BytesToString(Buffer, 0, Buffer.Length, "ASCII")
LogMessage(s)
End Sub
Sub LogMessage(Msg As String)
lblScale.Text = Msg.Trim
End Sub