Please wait. Due to its content this page might take a while to load...
This chapter gives an overview of the members available for the UDP Client in the Configuration dialog.
Please read the chapter "UDP Client" if you like to know how to add and use this device. The chapter Object and Member Notation in Widget Designer explains how to use members in general.
Udp_ClientID.Disable Example: This disables the TCP Client connection in the Configuration dialog as if the "Enable" check box in the window was unchecked. Use the .Enable member to reverse this command. |
Udp_ClientID.Enable Example: This enables the TCP Client connection in the Configuration dialog as if the "Enable" check box in the window was checked. Use the .Disable member to reverse this command. |
Udp_ClientID.IpAddress Example: This returns the IP address of the TCP Client connection as a string. The result could look as follows: 10.169.80.10 You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Udp_Client1.IpAddress In return, you can also assign an IP address to the TCP Client connection. WD automatically connects to it afterwards. |
Udp_ClientID.IsEnabled Example: This member returns the status of the check box "Enable" for the TCP Client connection in the Configuration dialog as a string or Boolean value. The result is "True" if the connection is enabled and "False" if it is currently not enabled. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Udp_Client1.IsEnabled |
Udp_ClientID.LastMessageReceived Example: This returns the last message that was received from the TCP Client connection as a string value. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Udp_Client1.LastMessageReceived |
Udp_ClientID.LocalPort Example: This returns the local port number of the TCP Client connection in the Configuration dialog as an integer value. The result could look as follows: 10001 You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Udp_Client1.LocalPort In return, you can also assign another local port to the TCP Client connection. WD automatically connects to it afterwards. |
Udp_ClientID.RemotePort Example: This returns the remote port number of the TCP Client connection in the Configuration dialog as an integer value. The result could look as follows: 10001 You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Udp_Client1.RemotePort In return, you can also assign another remote port to the TCP Client connection. WD automatically connects to it afterwards. |
Udp_ClientID.Send(data) Example: This allows to send a custom message to the connected TCP server. Literal text should always be enclosed in either single or double quotation marks otherwise the text is handled like a variable. You can also combine both like in the example. The global variable "Now" sends the current date and time. |