Dear frinds, please for help,
i have four string
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
and I need to send this strings to this roputine
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
How can I send strings to this routine please? I am trying
Ints to bytes and string to bytes, but I have not results..
Best regards
p4ppc
			
			i have four string
			
				B4X:
			
		
		
		dim number1 as string = "250"
dim number2 as string = "12"
dim number3 as string = "1"
dim number4 as string = "32"
dim sendbyte() as byte
            sendbyte(0)=number1
            sendbyte(1)=number2
            sendbyte(2)=number3
            sendbyte(3)=number4
receive(sendbyte)
			
				B4X:
			
		
		
		Sub receive(buffer() As Byte)
    Dim s As String
    s = BytesToString(buffer, 0, buffer.Length, "UTF8")
    Dim find32 As String =s.CharAt(0)
    Dim data32() As Byte
    data32=find32.GetBytes("UTF8")
    Dim value As Byte=0
    value=data32(0)
    Log("value=" & value)
    If value32=32 Then log("Was received 32")
End subHow can I send strings to this routine please? I am trying
Ints to bytes and string to bytes, but I have not results..
Best regards
p4ppc
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
				 
 
		 
 
		 
 
		 
 
		