Hi
PC side give me string "#0000011223*". Why I always get a null string(s1) from BytesToString but buffer() have data inside ?
Sub AStream_NewData(buffer() As Byte)
Dim s1 As String
If buffer.Length>0 Then
s1 = BytesToString(buffer, 0, buffer.Length, "UTF8")
bt.Rxbf = bt.Rxbf + s1
End If
End Sub
PC side give me string "#0000011223*". Why I always get a null string(s1) from BytesToString but buffer() have data inside ?
Sub AStream_NewData(buffer() As Byte)
Dim s1 As String
If buffer.Length>0 Then
s1 = BytesToString(buffer, 0, buffer.Length, "UTF8")
bt.Rxbf = bt.Rxbf + s1
End If
End Sub