public enum Battery extends java.lang.Enum<Battery> implements GATT.GATTCharacteristic
GATT.GATTService.BATTERY
GATT.GATTCharacteristic, GATT.GATTService
Enum Constant and Description |
---|
BATTERY_LEVEL
Battery level, as reported from the connected device
|
Modifier and Type | Method and Description |
---|---|
GATT.GATTService |
gattService()
Get the service the characteristic belongs to
|
java.util.UUID |
uuid()
Get the UUID of the GATT object
|
static Battery |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Battery[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Battery BATTERY_LEVEL
public static Battery[] values()
for (Battery c : Battery.values()) System.out.println(c);
public static Battery 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 java.util.UUID uuid()
GATT
public GATT.GATTService gattService()
GATT.GATTCharacteristic
gattService
in interface GATT.GATTCharacteristic