set-net
Use the interface to configure Ethernet network.
HTTP Request
GET http://ip/usapi?method=set-net&type=0&is-dhcp=1&ip=10.10.107.212&mask=255.255.0.0&router=10.10.0.1&dns=10.0.0.3
Parameter | Description |
---|---|
method | set-net |
type | 0: Wi-Fi 1: wired Ethernet network |
is-dhcp | Indicates whether to obtain an IP address from the DHCP server. 0 indicates to set IP address manually. 1 indicates to obtain an IP address from the DHCP server dynamically. |
ip | Indicates Ethernet IP address. |
mask | Indicates the subnet mask. |
router | Indicates the gateway. |
dns | Indicates DNS server. |
Response Body
{
"result": 0
}
Item | Description |
---|---|
result | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |