Hello to everyone
from android sending strings each one different
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
in b4r I receive the string
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
and I should convert it to hexadecimal complete with "0x"
but I do not know how to do it.
Thanks for the suggestion
			
			from android sending strings each one different
			
				B4X:
			
		
		
		TcpStreams.Write(ser.ConvertArrayToBytes(Array("B00000B02000C001")))'----> esp8266 serverin b4r I receive the string
			
				B4X:
			
		
		
		'RX from android
Sub AStream_NewData (Buffer() As Byte)
    Dim be(8) As Object
    
    Dim data() As Object = ser.ConvertBytesToArray(Buffer, be)
    
    Log(Buffer)
    
    
    For Each str As Object In data
    
        Log(str)'-----> B00000B02000C001 (this string I need to convert it in hex --> (0xB0, 0x00, 0x00, 0xB0, 0x20, 0x00, 0xC0, 0x01)
                
'        ............. ?
        
        
        
'        EXAMPLE : THIS HEX WORKS GOOD BUT IT IS A STATIC STRING HEX
'        Serial1.Stream.WriteBytes(Array As Byte(0xB0, 0x00, 0x00, 0xB0, 0x20, 0x00, 0xC0, 0x01), 0, 8)'----->uart tx
    next           
    
    
End Suband I should convert it to hexadecimal complete with "0x"
but I do not know how to do it.
Thanks for the suggestion
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		