public static enum GATT.GATTService extends java.lang.Enum<GATT.GATTService> implements GATT
GATT.GATTCharacteristic, GATT.GATTService
Enum Constant and Description |
---|
BATTERY
BLE standard UUID for battery level service
|
DEVICE_INFORMATION
BLE standard UUID for device information service
|
METAWEAR
MetaWear service
|
Modifier and Type | Method and Description |
---|---|
GATT.GATTCharacteristic |
getCharacteristic(java.util.UUID charUUID)
Get the GATT characteristic under the service that matches the uuid
|
static GATT.GATTService |
lookupGATTService(java.util.UUID uuid)
Find the GATT service with the desired uuid
|
java.util.UUID |
uuid()
Get the UUID of the GATT object
|
static GATT.GATTService |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GATT.GATTService[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GATT.GATTService BATTERY
Battery
public static final GATT.GATTService DEVICE_INFORMATION
DeviceInformation
public static final GATT.GATTService METAWEAR
MetaWear
public static GATT.GATTService[] values()
for (GATT.GATTService c : GATT.GATTService.values()) System.out.println(c);
public static GATT.GATTService 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 GATT.GATTCharacteristic getCharacteristic(java.util.UUID charUUID)
charUUID
- Characteristic UUID to searchpublic static GATT.GATTService lookupGATTService(java.util.UUID uuid)
uuid
- UUID to search