B4J Question Nooby trying to figure out serial send

GarryP64

Member
I am trying to send a text character followed by a value from a textfield. I can get the value to send but cant figure how to send the preceding character.

astream.Write("h" & txtHLThigh.Text.GetBytes("utf8"))

Thanks
 

Daestrum

Expert
Licensed User
Longtime User
Or maybe (harder to read though)
B4X:
astream.write(("h" & txtHLThigh.Text).As(String).GetBytes("utf8"))
 
Upvote 0
Top