public enum DiscoveryOptions extends Enum<DiscoveryOptions>
| Enum Constant and Description |
|---|
APPEND_DD
Append device type identifier (DD) to the discovery response.
|
APPEND_RSSI
Append RSSI of the last hop to the discovery response.
|
DISCOVER_MYSELF
Local device sends response frame when discovery is issued.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateDiscoveryValue(XBeeProtocol protocol,
Set<DiscoveryOptions> options)
Calculates the total value of a combination of several options for the
given protocol.
|
String |
getDescription()
Returns the description of the discovery option.
|
int |
getValue()
Returns the value of the discovery option.
|
String |
toString() |
static DiscoveryOptions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiscoveryOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscoveryOptions APPEND_DD
Valid for the following protocols:
public static final DiscoveryOptions APPEND_RSSI
Valid for the following protocols:
public static final DiscoveryOptions DISCOVER_MYSELF
Valid for the following protocols:
public static int calculateDiscoveryValue(XBeeProtocol protocol, Set<DiscoveryOptions> options)
protocol - The XBeeProtocol to calculate the value of all
the given discovery options.options - Collection of options to get the final value.XBeeProtocolpublic String getDescription()
public int getValue()
public String toString()
toString in class Enum<DiscoveryOptions>public static DiscoveryOptions 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 DiscoveryOptions[] values()
for (DiscoveryOptions c : DiscoveryOptions.values()) System.out.println(c);
© Copyright 2014?2015 Digi International Inc. All rights reserved.