Use this function to send a network message. After sending data the function trys to get an answer from endpoint and returns the data. If a error occures the function returns -1. This function demands the following parameters:
Parameter 1 -> Protocol (TCP,UDP)
Parameter 2 -> Host (IP or DNS Alias)
Parameter 3 -> Port
Parameter 4 -> Timeout [ms]
Parameter 5 -> Message
Example:
%System.SendPacket(TCP,'134.109.0.15',9830,1,'Hello')
This function call sends a message 'Hello' to endpoint using TCP/IP Protocol.