public enum DeviceInformation extends java.lang.Enum<DeviceInformation> implements GATT.GATTCharacteristic
GATT.GATTService.DEVICE_INFORMATION
GATT.GATTCharacteristic, GATT.GATTService
Enum Constant and Description |
---|
FIRMWARE_VERSION
Firmware version on the device
|
HARDWARE_VERSION
Hardware version of the device
|
MANUFACTURER_NAME
Manufacturer's name i.e.
|
SERIAL_NUMBER
Serial number of the 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 DeviceInformation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DeviceInformation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceInformation MANUFACTURER_NAME
public static final DeviceInformation SERIAL_NUMBER
public static final DeviceInformation FIRMWARE_VERSION
public static final DeviceInformation HARDWARE_VERSION
public static DeviceInformation[] values()
for (DeviceInformation c : DeviceInformation.values()) System.out.println(c);
public static DeviceInformation 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