I can successfully send a text string (hello world) over UDP socket connection using this Subroutine code:
Sub Send_Message
Dim Packet As UDPPacket
Dim data () As Byte
data = "hello world" .GetBytes ("UTF8")
Packet.Initialize (data, "192.168.16.254", 8080)
UDPSocket1.Send (Packet)
End Sub
This proves that my coding and socket connection works (to send a ASCII string) However, I really need to send a hex string. Specifically, I need to send this string in hex: FE 04 00 00 00 02
What changes do I need to make to send my hex string?
Also I would like to continuously send my hex string every 800 milliseconds.
What coding do I need to add to achieve this?
Sub Send_Message
Dim Packet As UDPPacket
Dim data () As Byte
data = "hello world" .GetBytes ("UTF8")
Packet.Initialize (data, "192.168.16.254", 8080)
UDPSocket1.Send (Packet)
End Sub
This proves that my coding and socket connection works (to send a ASCII string) However, I really need to send a hex string. Specifically, I need to send this string in hex: FE 04 00 00 00 02
What changes do I need to make to send my hex string?
Also I would like to continuously send my hex string every 800 milliseconds.
What coding do I need to add to achieve this?