Write

Syntax

Command Description Return Value
Write <port> <string> Writes the given string to the specified port The number of characters written
Write <ip-address> <string> Sends the given string via UDP to the specified ip-address using the default port of 52737 The number of characters written
Write <ip-address>:<port> <string> Sends the given string via UDP to the specified ip-address and port The number of characters written
Write URL <curl-string> Sends the given string via built-in CURL tool The number of characters written
  • <port>
    • COM1 refers to the built-in RS-232 port.
    • COM2 refers to the built-in RS-485 port.
  • <ip-address>
    • Any valid ip address (such as 192.168.1.234)
  • <curl-string>
    • Any valid CURL request. See Appendix A for additional details about CURL.

Abbreviation

WR

Writes (or sends) the given string to the specified serial port, UDP destination, or CURL destination.

Use the Write command to send strings to other devices via one of the serial ports or via Ethernet messages.

Examples

Write COM1 "Hello World"
Sends the string “Hello World” to the RS-232 port.

Write COM2 "This is a test\r"
Sends the string “This is a test” followed by a carriage return character to the RS-485 port.

Write "10.0.1.5" "Cue 1 Go"
Sends the string “Cue 1 Go” via UDP to the ip address “10.0.1.5” and the default port of 52737.

Write "10.0.1.5:1234" "Mission Accepted\x00"
Sends the string “Mission Accepted” followed by a NULL byte via UDP to the ip address “10.0.1.5” and the port of 1234.

Write URL "http://10.0.1.5/request"
Sends an HTTP GET request to 10.0.1.5 to fetch the “/request” URL.

Write URL "--user-agent 'MyAgent' -d 'Hello World' http://10.0.1.5/cgi-bin/post"
Sends an HTTP POST request to 10.0.1.5 to fetch the “/cgi-bin/post” URL. The data “Hello World” will be posted.