B4J Question astream.Write

G.Z.

Member
hello,
I need to send data with astream.Write

My data are 5 bytes, how to do that?

Dim b1 as byte = 0
Dim b2 as byte = 2
Dim b3 as byte = 4
Dim b4 as byte = 8
Dim b5 as byte = 16

astream.Write(b1.... ???

Can some one explain me how?

thanks
 

Mark Read

Well-Known Member
Licensed User
Longtime User
Have you tried?

B4X:
astream.Write(Array As Byte(b1, b2, b3, b4, b5))
 
Upvote 0
Top