
7. LW3 Programmers’ Reference
RAP-B511 series
– User's Manual
91
Applied firmware package: v1.1.0b3b3 | LDC software: v2.5.1b5
7.16.5.
Sending a UDP Text (ASCII-format)
The command is for sending a text message in ASCII-format via UDP-protocol. This method
does not allow
escaping or inserting control characters.
Command and Response
ç
CALL·/MEDIA/ETHERNET:udpText(
<IP_address>
:
<port_no>
=
<text>
)
æ
mO·/MEDIA/ETHERNET:udpText
Example
ç
CALL /MEDIA/ETHERNET:udpText(192.168.0.20:9988=open)
æ
mO /MEDIA/ETHERNET:udpText
The 'open' text is sent to the indicated IP:port address.
7.16.6.
Sending a UDP Binary Message (HEX-format)
The command is for sending a binary message in Hexadecimal format. This method
does not require
escaping
the control and non-printable characters.
Command and Response
ç
CALL·/MEDIA/ETHERNET:udpBinary(
<IP_address>
:
<port_no>
=
<HEX_message>
)
æ
mO·/MEDIA/ETHERNET:udpBinary
Example
ç
CALL /MEDIA/ETHERNET:udpBinary(192.168.0.20:9988=433030)
æ
mO /MEDIA/ETHERNET:udpBinary
The '433030' message is sent to the indicated IP:port address.
INFO:
There is no need to insert a space or other separator character between the binary messages.
7.17.
HTTP Messaging
DIFFERENCE:
This feature and below commands are available from FW package v1.1.0b3.
Http
post
and
put
messages can be sent from the Lightware device for more integration with third-party
devices.
#http #new
ATTENTION!
This feature means posting or putting
HTTP
messages from the Lightware device to another
device. Encrypted transmission (
HTTPS
) is not supported.
7.17.1.
Setting the Target IP Address
Command and Response
ç
SET·/CTRL/HTTP/C1.ServerIP=
<IP_address>
æ
pw·/CTRL/HTTP/C1.ServerIP=
<IP_address>
Example
ç
SET /CTRL/HTTP/C1.ServerIP=192.168.0.220
æ
pw /CTRL/HTTP/C1.ServerIP=192.168.0.220
7.17.2.
Setting the TCP Port
Command and Response
ç
SET·/CTRL/HTTP/C1.ServerPort=
<port_no>
æ
pw·/CTRL/HTTP/C1.ServerPort=
<port_no>
Example
ç
SET /CTRL/HTTP/C1.ServerPort=80
æ
pw /CTRL/HTTP/C1.ServerIP=80
7.17.3.
Setting the Target Path
This property sets the path in the target device where the post/put message to be sent.
Command and Response
ç
SET·/CTRL/HTTP/C1.File=
<path>
æ
pw·/CTRL/HTTP/C1.File=
<path>
Example
ç
SET /CTRL/HTTP/C1.File=/putxml
æ
pw /CTRL/HTTP/C1.File=/putxml