public enum XBeeProtocol extends Enum<XBeeProtocol>
| Enum Constant and Description |
|---|
DIGI_MESH |
DIGI_POINT |
RAW_802_15_4 |
SMART_ENERGY |
UNKNOWN |
XBEE_WIFI |
XC |
XCITE |
XLR |
XLR_DM |
XTEND |
XTEND_DM |
ZIGBEE |
ZNET |
| Modifier and Type | Method and Description |
|---|---|
static XBeeProtocol |
determineProtocol(HardwareVersion hardwareVersion,
String firmwareVersion)
Determines the XBee protocol based on the given Hardware and firmware
versions.
|
static XBeeProtocol |
get(int id)
Returns the
XBeeProtocol associated to the given ID. |
String |
getDescription()
Returns the XBee protocol description.
|
int |
getID()
Returns the XBee protocol ID.
|
String |
toString() |
static XBeeProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XBeeProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XBeeProtocol DIGI_MESH
public static final XBeeProtocol DIGI_POINT
public static final XBeeProtocol RAW_802_15_4
public static final XBeeProtocol SMART_ENERGY
public static final XBeeProtocol UNKNOWN
public static final XBeeProtocol XBEE_WIFI
public static final XBeeProtocol XC
public static final XBeeProtocol XCITE
public static final XBeeProtocol XLR
public static final XBeeProtocol XLR_DM
public static final XBeeProtocol XTEND
public static final XBeeProtocol XTEND_DM
public static final XBeeProtocol ZIGBEE
public static final XBeeProtocol ZNET
public static XBeeProtocol determineProtocol(HardwareVersion hardwareVersion, String firmwareVersion)
hardwareVersion - The hardware version of the protocol to
determine.firmwareVersion - The firmware version of the protocol to
determine.HardwareVersionpublic static XBeeProtocol get(int id)
XBeeProtocol associated to the given ID.id - The ID of the XBeeProtocol to retrieve.XBeeProtocol associated to the given ID.public String getDescription()
public int getID()
public String toString()
toString in class Enum<XBeeProtocol>public static XBeeProtocol valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static XBeeProtocol[] values()
for (XBeeProtocol c : XBeeProtocol.values()) System.out.println(c);
© Copyright 2014–2014 Digi International Inc. All rights reserved.