Hi everyone!
I'm new to B4A. Programming in VB.net
I want to make a project for a mobile phone to send and receive data over TCP.
I used an example of TestSockets. But my controller (USR K7) does not accept the data I send to HEX.
For example, in vb.net I have a data packet: FF A1 C3 01 10 FD. But in this example, the same packet is not formed. I ask you to help me find a mistake.
Thank you! It works!
There's another question. How do I substitute data from a text field.
Dim buffer() As Byte = Array As Byte(txt_out.Text)
It doesn't work like that
It depends on what you are trying to send. If you want to send the string then call GetBytes to convert it to bytes. If the string itself is in hex format then use ByteConverter.HexToBytes (or BytesFromHex) to convert it to an array of bytes.