// WifiSecurityType WIFI安全类型
type WifiSecurityType string
const (
WifiSecurityTypeOpen WifiSecurityType = "open"
WifiSecurityTypeShared WifiSecurityType = "shared"
WifiSecurityTypeWPAPSK WifiSecurityType = "wpa_psk"
WifiSecurityTypeWPA2PSK WifiSecurityType = "wpa2_psk"
)
// WifiCryptType WIFI加密类型
type WifiCryptType string
const (
WifiCryptTypeNone WifiCryptType = "none"
WifiCryptTypeWEP40 WifiCryptType = "wep40" // 64
WifiCryptTypeWEP104 WifiCryptType = "wep104" // 128
WifiCryptTypeTKIP WifiCryptType = "tkip"
WifiCryptTypeAES WifiCryptType = "aes" // CCMP
)
curl --location --request GET 'https://192.168.88.11:9781/bvcsp/v1/pu/network/wifi/' \
--header 'Authorization;'
{
"code": 0,
"msg": "string",
"data": {
"enable": true,
"mode": 0,
"signalLevel": 0,
"general": {
"ssid": "string",
"securityType": "string",
"cryptType": "string",
"wepKey": [
"string"
],
"wpaKey": "string",
"dhcp": 0,
"pppoe": 0,
"autoDNS": true,
"ip": "string",
"netMask": "string",
"gateway": "string",
"dns": [
"string"
]
},
"wifiHotSpot": {
"providerAll": [
"string"
],
"providerIndex": 0,
"areaAll": [
"string"
],
"areaIndex": 0,
"userName": "string",
"password": "string"
},
"wifiAP": {
"enableSetting": true,
"enable": true,
"hideSSID": true,
"ssid": "string",
"safeType": 0,
"password": "string",
"channel": 0,
"autoChannelSelect": true,
"ip": "string",
"subMark": "string",
"dhcp": 0,
"dhcpStartAddr": "string",
"dhcpEndAddr": "string"
},
"macAddr": "string"
}
}