7.LW3Programmer'sReference
HDMI-TPS-TX200series–User'sManual
109
Appliedfirmwarepackage:v1.3.2b3 | LDCsoftware:v2.5.7b2
7.14.
HTTP Messaging
DIFFERENCE:
ThefeaturesandcommandsbelowareavailableonlyforSW4-TPS-TX240-PlusfromFW
packagev1.3.0b6.
Http
post
and
put
messagescanbesentfromtheLightwaredeviceformoreintegrationwiththird-party
devices.
#http
ATTENTION!
Thisfeaturemeanspostingorputting
HTTP
messagesfromtheLightwaredevicetoanother
device. Encrypted transmission (
HTTPS
) is not supported.
7.14.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.14.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.14.3.
Setting the Target Path
Thispropertysetsthepathinthetargetdevicewherethepost/putmessagetobesent.
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
7.14.4.
Setting the Message Header
Command and Response
ç
SET·/CTRL/HTTP/C1.Header=
<header_text>
æ
pw·/CTRL/HTTP/C1.Header=
<header_text>
Example
ç
SET/CTRL/HTTP/C1.Header=Host:192.168.0.220\r\nContent-Type:text/xml\r\nAuthorization:Basic
YWRtaW46TGlnaHR3YXJlMDE=
æ
pw/CTRL/HTTP/C1.Header=Host:192.168.0.220\r\nContent-Type:text/xml\r\nAuthorization:Basic
YWRtaW46TGlnaHR3YXJlMDE=
7.14.5.
Sending a Post Message
Command and Response
ç
CALL·/CTRL/HTTP/C1:post(
<body_text>
)
æ
mO·/CTRL/HTTP/C1:post
Example
ç
CALL/CTRL/HTTP/C1:post(<Command><Message><Send><Text>LI1R_P</Text></Send></
Message></Command>)
æ
mO/CTRL/HTTP/C1:post
7.14.6.
Sending a Put Message
Command and Response
ç
CALL·/CTRL/HTTP/C1:put(
<body_text>
)
æ
mO·/CTRL/HTTP/C1:put
Example
ç
CALL/CTRL/HTTP/C1:put(<Command><Message><Send><Text>LI1R_P</Text></Send></Message></
Command>)
æ
mO/CTRL/HTTP/C1:put