connect-wifi
Use this interface to connect to a saved Wi-Fi network.
HTTP Request
GET http://ip/usapi?method=connect-wifi&name=magewell&is-auto=1
| Parameter | Description |
|---|---|
| method | connect-wifi |
| name | Indicates name of Wi-Fi network. |
| is-auto | Indicates whether to auto-connect to the saved Wi-Fi network. |
| is-dhcp | Whether to dynamically obtain IP address 0: Manual setting 1: Dynamic obtain |
| ip | IP address |
| mask | Subnet mask |
| router | Gateway |
| dns | 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. |