The network configuration.
The current state of the network is available at /sys/net.
Normal response.
Unauthorized response.
{- "result": {
- "ethernet": {
- "watchdog": true
}, - "goproxy": {
- "enable": true,
- "server": "proxy.egauge.io"
}, - "homeplug": {
- "region": "CE"
}, - "hostname": "eGauge42",
- "http": {
- "cgi-bin": "user-required",
- "client": {
- "insecure": "false"
}
}, - "ipv4": {
- "dhcp": true,
- "address": "192.168.1.42",
- "broadcast": "192.168.1.255",
- "netmask": "255.255.255.0",
- "network": "192.168.1.0",
- "gateway": "192.168.1.1"
}, - "nameserver": {
- "server": [
- "1.1.1.1",
- "8.8.8.8",
- "2606:4700:4700::1111"
]
}, - "ntp": {
- "server": [
- "192.168.1.1",
- "north-america.pool.ntp.org",
- "2610:20:6f15:15::27"
]
}, - "option": {
- "secure_only": false
}, - "proxy": {
- "enable": true,
- "server": "d.egauge.net"
}, - "ptp": {
- "client_only": true,
- "interface": {
- "eth0": {
- "transport": "UDPv4",
- "udp_ttl": 1
}
}
}
}, - "error": "Error message (present if an error occurred)."
}
object (configNetEthernet) The Ethernet configuration of the meter. | |
object (configNetGoproxy) The Go proxy configuration of the meter. | |
object (configNetHomeplug) HomePlug configuration. This is used only by devices with built-in HomePlug power-line communication (egauge2, EG3x10 and EG41xx). | |
hostname | string (configNetHostname) The hostname of the meter. Must consist of ASCII letters, digits, and dashes only. |
object (configNetHttp) Web (HTTP) related configurations. Modification requests ( | |
object (configNetIpv4) The Internet Protocol v4 (IPv4) configuration. | |
object (configNetNameserver) The name server (DNS) configuration. | |
object (configNetNtp) The Network Time Protocol (NTP) configuration. | |
object (configNetOption) Options that have a system-wide effect on the network services. | |
object (configNetProxy) The proxy configuration of the meter. | |
object (configNetPtp) The Precision Time Protocol (PTP) configuration. |
Normal response.
Unauthorized response.
{ }
{- "status": "OK",
- "error": "Error message (present if an error occurred)."
}
object (configNetEthernet) The Ethernet configuration of the meter. | |
object (configNetGoproxy) The Go proxy configuration of the meter. | |
object (configNetHomeplug) HomePlug configuration. This is used only by devices with built-in HomePlug power-line communication (egauge2, EG3x10 and EG41xx). | |
hostname | string (configNetHostname) The hostname of the meter. Must consist of ASCII letters, digits, and dashes only. |
object (configNetHttp) Web (HTTP) related configurations. Modification requests ( | |
object (configNetIpv4) The Internet Protocol v4 (IPv4) configuration. | |
object (configNetNameserver) The name server (DNS) configuration. | |
object (configNetNtp) The Network Time Protocol (NTP) configuration. | |
object (configNetOption) Options that have a system-wide effect on the network services. | |
object (configNetProxy) The proxy configuration of the meter. | |
object (configNetPtp) The Precision Time Protocol (PTP) configuration. |
Normal response.
Unauthorized response.
{ }
{- "status": "OK",
- "error": "Error message (present if an error occurred)."
}
Reset to default. See the descriptions of the individual endpoints for their default values. Commonly, arrays and strings are cleared to empty, numbers are cleared to 0, and booleans are cleared to false
.
Normal response.
Unauthorized response.
{- "status": "OK",
- "error": "Error message (present if an error occurred)."
}