Scan

Function

This API is used to get wifi list for Network > WLANScan.

Request Message

None

Sample:

POST /API/NetworkConfig/ScanWlan/Scan HTTP/1.1
{
    "version":"1.0",
    "data":{}
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
wifi_infoJSON arrayJSON,see Table 2 for more information
Table 2
ParameterRangeTypeDescription
ssidMax length:35bytestringWIFI SSID
signal_strength0-4intWiFi Signal Strength
tip:only use for ScanWlan
securityMax length:128bytestringWiFi Signal Strength
tip:only use for ScanWlan
passwordMax length:35bytestringWIFI password
tip:only use for JoinWlan
base_enc_passwordJson Objectencrypted password,see base_secondary_authentication for more information

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {"wifi_info": [
        {
            "ssid": "TP-LINK_80AA",
            "signal_strength": 4,
            "security": "[WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS]"
        },
        ...
        {
            "ssid": "YF-RJ-05",
            "signal_strength": 0,
            "security": "[WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS]"
        }
    ]}
}

Error Code

See Response Messages Body and Common error_code for more information.