C charro98120165 Member Licensed User Longtime User Mar 24, 2013 #1 sorry my bad english. plis example for read characters by using the USB serial library tanks. who read a new character using "Sub Astreams_NewData (Buffer() As Byte)"
sorry my bad english. plis example for read characters by using the USB serial library tanks. who read a new character using "Sub Astreams_NewData (Buffer() As Byte)"
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2013 #2 B4X: Dim str As String = BytesToString(Buffer, 0, Buffer.Length, "UTF8") Log(str) Upvote 0
C charro98120165 Member Licensed User Longtime User Mar 24, 2013 #3 tanks, but if arduino send first character "1" after "2" after "3" how read and save in diferent variables?? tanks Upvote 0
tanks, but if arduino send first character "1" after "2" after "3" how read and save in diferent variables?? tanks
Erel B4X founder Staff member Licensed User Longtime User Mar 25, 2013 #4 I recommend you to read this post: [class] AsyncStreamsText - Useful when working with streams of text You can get each character by calling str.CharAt(.) Upvote 0
I recommend you to read this post: [class] AsyncStreamsText - Useful when working with streams of text You can get each character by calling str.CharAt(.)