Enum Command
- java.lang.Object
-
- java.lang.Enum<Command>
-
- com.zentri.zentri_ble_command.Command
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Command>
public enum Command extends java.lang.Enum<Command>
- See Also:
ZentriOSBLEManager
,onCommandSent()
,onCommandResult()
Enum Constant Summary
Enum Constant and Description |
---|
ADC |
BEEP |
FACTORY_RESET |
GET |
GPIO_DIRECTION |
GPIO_FUNCTION |
GPIO_GET |
GPIO_SET |
PWM |
REBOOT |
SAVE |
SET |
SLEEP |
STREAM_MODE |
VERSION |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static Command |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Enum Constant Detail
-
ADC
public static final Command ADC
-
BEEP
public static final Command BEEP
-
FACTORY_RESET
public static final Command FACTORY_RESET
-
GET
public static final Command GET
-
GPIO_DIRECTION
public static final Command GPIO_DIRECTION
-
GPIO_FUNCTION
public static final Command GPIO_FUNCTION
-
GPIO_GET
public static final Command GPIO_GET
-
GPIO_SET
public static final Command GPIO_SET
-
PWM
public static final Command PWM
-
REBOOT
public static final Command REBOOT
-
SAVE
public static final Command SAVE
-
SET
public static final Command SET
-
SLEEP
public static final Command SLEEP
-
STREAM_MODE
public static final Command STREAM_MODE
-
VERSION
public static final Command VERSION
Method Detail
-
values
public static Command[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Command c : Command.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Command valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Command>