Page 100 / 119 Section 8. LW3 Programmers’ reference
8.8.6. Change the subnet mask (static)
Command format
SET/MANAGEMENT/NETWORK.StaticNetworkMask=<netmask>
Response format
pw/MANAGEMENT/NETWORK.StaticNetworkMask=<netmask>
Example
> SET/MANAGEMENT/NETWORK.StaticNetworkMask=255.255.255.0
< pw/MANAGEMENT/NETWORK.StaticNetworkMask=255.255.255.0
8.8.7. Query the gateway address
Command format
GET/MANAGEMENT/NETWORK.GatewayAddress
Response format
pr/MANAGEMENT/NETWORK.GatewayAddress=<gw_address>
Example
> GET/MANAGEMENT/NETWORK.GatewayAddress
< pr/MANAGEMENT/NETWORK.GatewayAddress=192.168.0.1
8.8.8. Change the gateway address (static)
Command format
SET/MANAGEMENT/NETWORK.StaticGatewayAddress=<gw_address>
Response format
pr/MANAGEMENT/NETWORK.StaticGatewayAddress=<gw_address>
Example
> SET/MANAGEMENT/NETWORK.StaticGatewayAddress=192.168.0.5
< pw/MANAGEMENT/NETWORK.StaticGatewayAddress=192.168.0.5
8.8.9. Send message via a TCP port
The device can be used for sending a message to a certain IP:port address. The feature
allows controlling a connected (third-party) device, below command is for sending an
ASCII-format text message:
Command format
CALL/MEDIA/ETHERNET.tcpText(<IP_address>”:”<port_no>”=”<message>)
Response format
mO/MEDIA/ETHERNET:tcpText
Example
> CALL/MEDIA/ETHERNET.tcpText(192.168.0.20:5555=pwr_on)
< mO/MEDIA/ETHERNET:tcpText
Send HEX or BIN message
Message can be sent in other formats by the following methods:
tcpMessage: sending in HEX format.
tcpBinary: sending in BIN format.
The command- and response formats are the same as above mentioned.
INFO
Use the udpMessage, udpText, and udpBinary commands to send a UDP message.