public enum WiFiModeEnum extends java.lang.Enum<WiFiModeEnum>
Enum Constant and Description |
---|
AP
AP模式: Access Point,提供无线接入服务,允许其它无线设备接入,提供数据访问,一般的无线路由/网桥工作在该模式下。AP和AP之间允许相互连接。
|
STA
Sta模式: Station, 类似于无线终端,sta本身并不接受无线的接入,它可以连接到AP,一般无线网卡即工作在该模式。
|
Modifier and Type | Method and Description |
---|---|
static WiFiModeEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WiFiModeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WiFiModeEnum STA
public static final WiFiModeEnum AP
public static WiFiModeEnum[] values()
for (WiFiModeEnum c : WiFiModeEnum.values()) System.out.println(c);
public static WiFiModeEnum valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null