10.2.3.13 Set Data Port
This command sets the sensor’s data port (default: 2368). It has the same effect as setting the Web Interface’s Data Port
field to the given number.
Command:
curl --data "dport=2368" http://192.168.1.201/cgi/setting/host
10.2.3.14 Set Telemetry Port
This command sets the sensor’s telemetry port (default: 8308). It has the same effect as setting the port number in the
Web Interface’s Telemetry Port field.
Command:
curl --data "tport=8309" http://192.168.1.201/cgi/setting/host
10.2.3.15 Set Network (Sensor) IP Address
This sets the IP address of the device. The default is 192.168.1.201. This has the same effect as entering an IP address in
the Web Interface Network IP field.
Command:
curl --data "addr=192.168.1.200" http://192.168.1.201/cgi/setting/net
10.2.3.16 Set Netmask
This sets the network mask of the sensor. The default is 255.255.255.0. This has the same effect as entering a net mask in
the Web Interface Mask field.
Command:
curl --data "mask=255.255.0.0" http://192.168.1.201/cgi/setting/net
10.2.3.17 Set Gateway
This sets the gateway address of the sensor. The default is 192.168.1.1. This has the same effect as entering a gateway
address in the Web Interface Gateway field.
Command:
curl --data "gateway=192.168.1.2" http://192.168.1.201/cgi/setting/net
10.2.3.18 Set DHCP
This determines if the sensor is to rely on a DHCP server for its IP address.
This has the same effect as selecting the corresponding radio button for DHCP in the Web Interface.
Take care when turning DHCP ON. Before doing so, ensure a DHCP server on the network is available to provide the
sensor with an IP address. If you turn DHCP ON and lose contact with the sensor, follow the
Contact With Sensor on page 88
Command:
curl --data "dhcp=[on|off]" http://192.168.1.201/cgi/setting/net
10.2.4 curl Example using Python
The script below demonstrates how to do basic operations with a sensor using PycURL, a Python package built on libcurl.
It works in Python 2 and 3. For more information on PycURL go to:
The script expects the sensor to have its default IP address. If it’s different, change Base_URL accordingly.
84
VLP-16 User Manual