public enum ATCommandStatus extends Enum<ATCommandStatus>
ATCommadResponse
objects will contain an entry of this enumerator
indicating the status of the AT Command that was executed.ATCommandResponse
Enum Constant and Description |
---|
ERROR |
INVALID_COMMAND |
INVALID_PARAMETER |
OK |
TX_FAILURE |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static ATCommandStatus |
get(int id)
Returns the
ATCommandStatus associated to the given ID. |
String |
getDescription()
Returns the AT Command Status description.
|
int |
getId()
Returns the AT Command Status ID.
|
String |
toString() |
static ATCommandStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ATCommandStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ATCommandStatus ERROR
public static final ATCommandStatus INVALID_COMMAND
public static final ATCommandStatus INVALID_PARAMETER
public static final ATCommandStatus OK
public static final ATCommandStatus TX_FAILURE
public static final ATCommandStatus UNKNOWN
public static ATCommandStatus get(int id)
ATCommandStatus
associated to the given ID.id
- ID to retrieve the corresponding ATCommandStatus
.ATCommandStatus
associated to the given ID.public String getDescription()
public int getId()
public String toString()
toString
in class Enum<ATCommandStatus>
public static ATCommandStatus 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 ATCommandStatus[] values()
for (ATCommandStatus c : ATCommandStatus.values()) System.out.println(c);
© Copyright 2014–2014 Digi International Inc. All rights reserved.