public enum DiscoveryType extends java.lang.Enum<DiscoveryType>
Enum Constant and Description |
---|
BEACON_DEVICE
一键配网发现的设备 adn$PK_$mac
|
BLE_ENROLLEE_DEVICE
蓝牙 WiFi双模设备,需根据扫描到的蓝牙设备去云端获取该设备是WiFi蓝牙双模设备还是普通的蓝牙设备
|
CLOUD_ENROLLEE_DEVICE
云端待配设备,一般是指零配或路由器配网方式发现并上报的待配网设备
丛云端获取
|
LOCAL_ONLINE_DEVICE
本地在线设备,即局域网已配网的设备
|
SOFT_AP_DEVICE
附近的 AP 热点,需要符合 adh_$PK_$mac 格式
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
int |
getType() |
static DiscoveryType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DiscoveryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscoveryType LOCAL_ONLINE_DEVICE
public static final DiscoveryType CLOUD_ENROLLEE_DEVICE
public static final DiscoveryType BLE_ENROLLEE_DEVICE
public static final DiscoveryType SOFT_AP_DEVICE
public static final DiscoveryType BEACON_DEVICE
public static DiscoveryType[] values()
for (DiscoveryType c : DiscoveryType.values()) System.out.println(c);
public static DiscoveryType 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 nullpublic int getType()
public java.lang.String getDescription()