/network/wifi-connect
Use the interface to connect WiFi.
Request Mode
POST /api/network/wifi-connect
Parameter | Description |
---|---|
iface | The network card name |
ssid | The AP name |
password | The AP connection password If an empty string is filled in, it indicates connecting an unencrypted AP or user-items has another connected AP. |
is-auto | Whether the network is connected automatically |
Response Body
{
"status": 0
}
Name | Description |
---|---|
status | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |