Enum WiFiSecurity
- All Implemented Interfaces:
Comparable<WiFiSecurity>
Security mode advertised by an access point. Used both for scan results
and when calling
WiFi.connect(...). The value passed to connect must
match the AP's actual security mode.-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic WiFiSecurityReturns the enum constant of this type with the specified name.static WiFiSecurity[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
OPEN
Open network, no encryption. -
WEP
Legacy WEP. Considered broken; some platforms refuse to connect at all. -
WPA_PSK
WPA / WPA2 personal (PSK). -
WPA3_SAE
WPA3 personal (SAE). -
EAP
Enterprise EAP (RADIUS-backed). Not directly supported byconnect; applications must supply an enterprise configuration through platform hooks if they need it. -
UNKNOWN
Unknown or platform did not report a security mode.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-