/network/ap-get-config

Use the interface to obtain AP information.

Request Mode

POST /api/network/ap-get-config
Parameter Description
iface The network card name

Response Body

{
    "ssid": "USB-Fusion_3002",
    "hw_mode": "g",
    "channel": 1,
    "country-code": "CN",
    "support-freq": [
        {
            "freq": "2.4G",
            "hw-mode": "g"
        },
        {
            "freq": "5G",
            "hw-mode": "a"
        }
    ],
    "support-channels": {
        "channels": [
            {
                "code": [
                    "US",
                    "CA"
                ],
                "2g-chans": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9,
                    10,
                    11
                ],
                "5g-chans": [
                    36,
                    40,
                    44,
                    48,
                    149,
                    153,
                    157,
                    161,
                    165
                ]
            },
            {
                "code": [
                    "AL",
                    "AM",
                    "AT",
                    "AZ",
                    "BA",
                    "BE",
                    "BG",
                    "BY",
                    "CH",
                    "CY",
                    "CZ",
                    "DE",
                    "DK",
                    "EE",
                    "EL",
                    "ES",
                    "FI",
                    "FR",
                    "GE",
                    "HR",
                    "HU",
                    "IE",
                    "IS",
                    "IT",
                    "LI",
                    "LT",
                    "LU",
                    "LV",
                    "MD",
                    "ME",
                    "MK",
                    "MT",
                    "NL",
                    "NO",
                    "PL",
                    "PT",
                    "RO",
                    "RS",
                    "RU",
                    "SE",
                    "SI",
                    "SK",
                    "TR",
                    "UA",
                    "UK"
                ],
                "2g-chans": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    13
                ],
                "5g-chans": [
                    36,
                    40,
                    44,
                    48,
                    149,
                    153,
                    157,
                    161,
                    165
                ]
            },
            {
                "code": [
                    "JP"
                ],
                "2g-chans": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    13
                ],
                "5g-chans": [
                    36,
                    40,
                    44,
                    48
                ]
            },
            {
                "code": [
                    "CN"
                ],
                "2g-chans": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    13
                ],
                "5g-chans": [
                    36,
                    40,
                    44,
                    48,
                    149,
                    153,
                    157,
                    161,
                    165
                ]
            }
        ],
        "global-2g-chans": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ],
        "global-5g-chans": [
            36,
            40,
            44,
            48,
            149,
            153,
            157,
            161,
            165
        ]
    },
    "ipaddr": "192.168.67.1",
    "dhcp-ip-start": "192.168.67.2",
    "dhcp-ip-end": "192.168.67.254",
    "first-use": false,
    "ap-to-sta-reboot-effect": true,
    "sta-to-ap-reboot-effect": false,
    "enable-surfing": true,
    "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.
ssid The AP name
hw_mode The working frequency of WiFi
a: 5GHz
g: 2.4GHz
channel The default AP channel
country-code Refer to ISO/IEC 3166-1
support-freq The supported frequency
ipaddr The IP address
dhcp-ip-start The starting IP address allocated by DHCP
dhcp-ip-end The ending IP address allocated by DHCP
enable-surfing Enable surfing
first-use The first time to switch to the AP mode
ap-to-sta-reboot-effect Whether to reboot when switching from AP to STA
sta-to-ap-reboot-effect Whether to reboot when switching from STA to AP

results matching ""

    No results matching ""