set-eth-config
Use the interface to set Ethernet configurations.
HTTP Request
GET http://ip/mwapi?method=set-eth-config¶m1=value1¶m2=value2...
Parameter |
Description |
method |
set-eth-config |
name |
Shows the device name. |
dhcp |
True indicates that the decoder uses DHCP to retrieve IP address, otherwise it is false. |
addr |
Indicates the IP address. |
mask |
Indicates the subnet mask address. |
gw-addr |
Indicates the gateway address. |
dns-addr |
Indicates the DNS server address. |
Response Body
{
"status": 0,
"reconnect": true
}
Name |
Description |
status |
0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |
reconnect |
True indicates to reconnect and log in the device after network changes, otherwise it is false. |