API
Disconnect the Wi-Fi if it is connected
Available in 7.1.1 or later
Input Parameters
Type | Notation | Mandatory | Description | |
connId | Number | <int> | required | Wi-Fi with the WAN connection ID to be used. |
ssid | String | <string> | optional | SSID to be disconnected. When omitted, the current connected SSID will be disconnected. |
cURL Example
curl -b cookies.txt -H "Content-Type: application/json" -X POST -d '{"connId":1,"ssid":"Main SSID"}' http://192.168.1.1/api/cmd.wifi.disconnect
{ "stat": "ok" }