Skip to main content
Skip table of contents

NetworkController

Last updated: 2025/3/7 11:0:13

Path To

Name

Description/Function

/api/network

/connectionspeed

Get the network link speed.

/api/network

/enabledhcp

Enable DHCP on the camera.

/api/network

/staticfallbackseconds/{seconds}

Sets the number of seconds to delay before falling back to static IP.

/api/network

/enablestaticip

Enable static IP.

/api/network

/enablestaticip/{ip}/{gateway}/{dns1}/{dns2}/{subnetmask}

Enable static IP.

/api/network

/get

Get the network state.

/connectionspeed

Function

Get the network link speed.

Method

Get

Response

Link speed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/network/connectionspeed

/enabledhcp

Function

Enable DHCP on the camera.

Method

Get

Response

Status code 200, for an completed operation being preformed.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/network/enabledhcp

/staticfallbackseconds/{seconds}

Function

Sets the number of seconds to delay before falling back to static IP.

Method

Get

Response

The number of seconds. Default=30.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/network/staticfallbackseconds/{seconds}

/enablestaticip

Function

Enable static IP.

Method

Post

Body

CODE
{
  "IPAddress":"#.#.#.#",
  "Gateway":"#.#.#.#",
  "DNS1":"#.#.#.#",
  "DNS2":"#.#.#.#",
  "SubnetMask":"#.#.#.#",
}

Response

A representing the asynchronous operation.

Explanation

Sets the IP address on the Rayfin to a static address.

Example

Example 1

CODE
{
  "IPAddress":"192.168.2.20",
  "Gateway":"192.168.2.1",
  "DNS1":"192.168.2.1",
  "DNS2":"8.8.8.8",
  "SubnetMask":"255.255.255.0"
}

Example 2

CODE
$ curl -X POST http://IP_ADDRESS:8080>/api/network/enablestaticip 
   -H 'Content-Type: application/json'
   -d '{ "IPAddress":"192.168.1.20", "Gateway":"192.168.2.1", "DNS1":"192.168.2.1", "DNS2":"8.8.8.8", "SubnetMask":"255.255.255.0" }'

/enablestaticip/{ip}/{gateway}/{dns1}/{dns2}/{subnetmask}

Function

Enable static IP.

Method

Get

Response

Subnet mask to use.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/network/enablestaticip/{ip}/{gateway}/{dns1}/{dns2}/{subnetmask}

/get

Function

Get the network state.

Method

Get

Response

The current network state.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/network/get
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.