Tcpclient send Hex

Sergio Luiz

Member
Joined
Feb 20, 2020
Messages
9
Location
Brazil - Sâo Paulo - SP
Programming Experience
5-10
Good afternoon everyone,
I have a string with a fixed Hex value (example: "02 F0 32 03 27") as send in a TCPClient communication. open and close the communication I know.

Thanks
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,570
Location
Sydney, Australia
Programming Experience
10+
Firstly, what do you actually want to send? Do you actually want to send that text? If so then it's just like sending any other text.

That said, I suspect that that's not actually what you want. Hex data like that is usually used to represent binary data, where each pair of hexadecimal digits represents one byte. That's the very reason that hex is used. If you actually want to send the byte values represented by those hexadecimal numbers then that is something different.
 
Top Bottom