sendUDPAsBytes
Converts ASCII string data to a byte array, and sends it as bytes to the specified host/port through UDP. The ASCII data is converted to Hexadecimal bytes, and can consist only of the following characters:
· 0 to 9
· A to F
· Spaces and commas (as delimiters)
Syntax
ogscript.sendUDPAsBytes (Host, Port, Data);
Parameters
Parameter |
Type |
Required |
Description |
Host |
String |
Yes |
Host name to send the given data through UDP. |
Port |
Integer |
Yes |
Port number on the given host to be sent given data through UDP. |
Data |
ASCII string |
Yes |
Data to be converted to bytes and sent through UDP to the specified host/port. |
Returns
N/A
Example
ogscript.sendUDPAsBytes (myComputer, 7788,'7A, 3C, FF');