public enum GattStatusCode extends Enum<GattStatusCode>
external/bluetooth/bluedroid/stack/include/
gatt_api.h
.
The status
parameter in BluetoothGattCallback class is one of the entries in this enum (probably).
NOTE: This class was moved from com.neovisionaries.bluetooth.ble.util
package to com.neovisionaries.bluetooth.ble
package on the release of
version 1.7.
Enum Constant and Description |
---|
AUTH_FAIL
GATT_AUTH_FAIL [0x89, 137].
|
BUSY
GATT_BUSY [0x84, 132].
|
CCC_CFG_ERR
GATT_CCC_CFG_ERR [0xfd, 253].
|
CMD_STARTED
GATT_CMD_STARTED [0x86, 134].
|
CONGESTED
GATT_CONGESTED [0x8f, 143].
|
DB_FULL
GATT_DB_FULL [0x83, 131].
|
ENCRYPTED_NO_MITM
GATT_ENCRYPTED_NO_MITM [0x8d, 141].
|
ERR_UNLIKELY
GATT_ERR_UNLIKELY [0x0e, 14].
|
ERROR
GATT_ERROR [0x85, 133].
|
ILLEGAL_PARAMETER
GATT_ILLEGAL_PARAMETER [0x87, 135].
|
INSUF_AUTHENTICATION
GATT_INSUF_AUTHENTICATION [0x05, 5].
|
INSUF_AUTHORIZATION
GATT_INSUF_AUTHORIZATION [0x08, 8].
|
INSUF_ENCRYPTION
GATT_INSUF_ENCRYPTION [0x0f, 15].
|
INSUF_KEY_SIZE
GATT_INSUF_KEY_SIZE [0x0c, 12].
|
INSUF_RESOURCE
GATT_INSUF_RESOURCE [0x11, 17].
|
INTERNAL_ERROR
GATT_INTERNAL_ERROR [0x81, 129].
|
INVALID_ATTR_LEN
GATT_INVALID_ATTR_LEN [0x0d, 13].
|
INVALID_CFG
GATT_INVALID_CFG [0x8b, 139].
|
INVALID_HANDLE
GATT_INVALID_HANDLE [0x01, 1].
|
INVALID_OFFSET
GATT_INVALID_OFFSET [0x07, 7].
|
INVALID_PDU
GATT_INVALID_PDU [0x04, 4].
|
MORE
GATT_MORE [0x8a, 138].
|
NO_RESOURCES
GATT_NO_RESOURCES [0x80, 128].
|
NOT_ENCRYPTED
GATT_NOT_ENCRYPTED [0x8e, 142].
|
NOT_FOUND
GATT_NOT_FOUND [0x0a, 10].
|
NOT_LONG
GATT_NOT_LONG [0x0b, 11].
|
OUT_OF_RANGE
GATT_OUT_OF_RANGE [0xff, 255].
|
PENDING
GATT_PENDING [0x88, 136].
|
PRC_IN_PROGRESS
GATT_PRC_IN_PROGRESS [0xfe, 254].
|
PREPARE_Q_FULL
GATT_PREPARE_Q_FULL [0x09, 9].
|
READ_NOT_PERMIT
GATT_READ_NOT_PERMIT [0x02, 2].
|
REQ_NOT_SUPPORTED
GATT_REQ_NOT_SUPPORTED [0x06, 6].
|
SERVICE_STARTED
GATT_SERVICE_STARTED [0x8c, 140].
|
SUCCESS
GATT_SUCCESS [0x00, 0].
|
UNSUPPORT_GRP_TYPE
GATT_UNSUPPORT_GRP_TYPE [0x10, 16].
|
WRITE_NOT_PERMIT
GATT_WRITE_NOT_PERMIT [0x03, 3].
|
WRONG_STATE
GATT_WRONG_STATE [0x82, 130].
|
Modifier and Type | Method and Description |
---|---|
static GattStatusCode |
getByValue(int value)
Get a
GattStatusCode instance that has the specified value. |
int |
getValue()
Get the integer value of this result code.
|
static GattStatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GattStatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GattStatusCode SUCCESS
GATT_ENCRYPTED_MITM has the same value as GATT_SUCCESS.
public static final GattStatusCode INVALID_HANDLE
public static final GattStatusCode READ_NOT_PERMIT
public static final GattStatusCode WRITE_NOT_PERMIT
public static final GattStatusCode INVALID_PDU
public static final GattStatusCode INSUF_AUTHENTICATION
public static final GattStatusCode REQ_NOT_SUPPORTED
public static final GattStatusCode INVALID_OFFSET
public static final GattStatusCode INSUF_AUTHORIZATION
public static final GattStatusCode PREPARE_Q_FULL
public static final GattStatusCode NOT_FOUND
public static final GattStatusCode NOT_LONG
public static final GattStatusCode INSUF_KEY_SIZE
public static final GattStatusCode INVALID_ATTR_LEN
public static final GattStatusCode ERR_UNLIKELY
public static final GattStatusCode INSUF_ENCRYPTION
public static final GattStatusCode UNSUPPORT_GRP_TYPE
public static final GattStatusCode INSUF_RESOURCE
public static final GattStatusCode NO_RESOURCES
public static final GattStatusCode INTERNAL_ERROR
public static final GattStatusCode WRONG_STATE
public static final GattStatusCode DB_FULL
public static final GattStatusCode BUSY
public static final GattStatusCode ERROR
public static final GattStatusCode CMD_STARTED
public static final GattStatusCode ILLEGAL_PARAMETER
public static final GattStatusCode PENDING
public static final GattStatusCode AUTH_FAIL
public static final GattStatusCode MORE
public static final GattStatusCode INVALID_CFG
public static final GattStatusCode SERVICE_STARTED
public static final GattStatusCode ENCRYPTED_NO_MITM
public static final GattStatusCode NOT_ENCRYPTED
public static final GattStatusCode CONGESTED
public static final GattStatusCode CCC_CFG_ERR
public static final GattStatusCode PRC_IN_PROGRESS
public static final GattStatusCode OUT_OF_RANGE
public static GattStatusCode[] values()
for (GattStatusCode c : GattStatusCode.values()) System.out.println(c);
public static GattStatusCode 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 int getValue()
public static GattStatusCode getByValue(int value)
GattStatusCode
instance that has the specified value.value
- The integer value of a result code.GattStatusCode
instance or null
.Copyright © 2016. All rights reserved.