API
Obtain the last known result of Wi-Fi WAN Connection
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. |
Return Parameters
Return JSON
Type | Notation | Description | |
timestamp | Number | <timestamp> | Timestamp of the last know result |
result | String | { CONNECTED, TIMEOUT, PSK_AUTH_FAIL, EAP_AUTH_FAIL, AP_NOT_FOUND, UNKNOWN_FAIL } | CONNECTED – Wi-Fi is successfully connected TIMEOUT – Wi-Fi connect timeout AP_NOT_FOUND – Cannot fid the AP PSK_AUTH_FAIL – Wi-Fi connect fail and the reason is PSK not match EAP_AUTH_FAIL – Wi-Fi connect fail and the reason is username and password of EAP do not match UNKNOWN_FAIL – Wi-Fi connect fail but the error cannot be classified |
bssid | String | <mac> | BSSID of the connected AP |
ssid | String | { open, wep, wpa-eap, wpa-psk, 8021x } | Security Policy of the connected AP |
message | String | <string> | Additional information of the status |
cURL Example
curl -b cookies.txt http://192.168.1.1/api/cmd.wifi.result?connId=1
{ "stat": "ok", "response": { "result": "CONNECTED", "timestamp": 1529899328, "ssid": "Main SSID", "bssid": "A2:E5:B8:55:89:DF", "securityPolicy": "wpa-psk", "message": "connected to Main SSID (A2:E5:B8:55:89:DF)" } }