public enum GattStatus extends java.lang.Enum<GattStatus>
Note that most of these error codes correspond to the ATT error codes as defined in the Bluetooth Standard, Volume 3, Part F, 3.4.1 Error handling p1491) See https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=478726
Gatt status values as defined in the Android source code: https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/master/stack/include/gatt_api.h
Enum Constant and Description |
---|
ATTRIBUTE_NOT_FOUND
No attribute found within the given attribute handle range.
|
ATTRIBUTE_NOT_LONG
The attribute cannot be read using the ATT_READ_BLOB_REQ PDU.
|
AUTHORIZATION_FAILED
Authorization failed, typically because bonding failed
|
BUSY
Busy
|
CCCD_CFG_ERROR
Client Characteristic Configuration Descriptor error
|
CMD_STARTED
Command has been queued up
|
CONNECTION_CANCELLED
L2CAP connection cancelled
|
CONNECTION_CONGESTED
Command is sent but L2CAP channel is congested
|
DATABASE_OUT_OF_SYNC
The server requests the client to rediscover the database.
|
DB_FULL
Database is full
|
ENCRYPTED_NO_MITM
No Man-in-the-middle protection
|
ERROR
Undefined GATT error occurred
|
FAILURE
Failure to register client when trying to connect
|
ILLEGAL_PARAMETER
Illegal parameter
|
INSUFFICIENT_AUTHENTICATION
The attribute requires authentication before it can be read or written.
|
INSUFFICIENT_AUTHORIZATION
The attribute requires authorization before it can be read or written.
|
INSUFFICIENT_ENCRYPTION
The attribute requires encryption before it can be read or written.
|
INSUFFICIENT_ENCRYPTION_KEY_SIZE
The Encryption Key Size used for encrypting this link is insufficient.
|
INSUFFICIENT_RESOURCES
Insufficient Resources to complete the request.
|
INTERNAL_ERROR
An internal error has occurred
|
INVALID_ATTRIBUTE_VALUE_LENGTH
The attribute value length is invalid for the operation.
|
INVALID_CFG
Invalid configuration
|
INVALID_HANDLE
The attribute handle given was not valid on this server
|
INVALID_OFFSET
Offset specified was past the end of the attribute.
|
INVALID_PDU
The attribute PDU was invalid.
|
MORE
More
|
NO_RESOURCES
No resources
|
NOT_ENCRYPTED
Not encrypted
|
PENDING
Operation is pending
|
PREPARE_QUEUE_FULL
Too many prepare writes have been queued.
|
PROCEDURE_IN_PROGRESS
Procedure in progress
|
READ_NOT_PERMITTED
The attribute cannot be read.
|
REQUEST_NOT_SUPPORTED
Attribute server does not support the request received from the client.
|
SERVICE_STARTED
Service started
|
SUCCESS
Operation completed successfully
|
UNKNOWN_STATUS_CODE
Used when status code is not defined in the class
|
UNLIKELY_ERROR
The attribute request that was requested has encountered an error that was unlikely, and therefore could not be completed as requested.
|
UNSUPPORTED_GROUP_TYPE
The attribute type is not a supported grouping attribute as defined by a higher layer specification.
|
VALUE_NOT_ALLOWED
The attribute parameter value was not allowed
|
VALUE_OUT_OF_RANGE
Value out of range
|
WRITE_NOT_PERMITTED
The attribute cannot be written.
|
WRONG_STATE
Wrong state
|
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
static @NotNull GattStatus |
fromValue(int value) |
static GattStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GattStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GattStatus SUCCESS
public static final GattStatus INVALID_HANDLE
public static final GattStatus READ_NOT_PERMITTED
public static final GattStatus WRITE_NOT_PERMITTED
public static final GattStatus INVALID_PDU
public static final GattStatus INSUFFICIENT_AUTHENTICATION
public static final GattStatus REQUEST_NOT_SUPPORTED
public static final GattStatus INVALID_OFFSET
public static final GattStatus INSUFFICIENT_AUTHORIZATION
public static final GattStatus PREPARE_QUEUE_FULL
public static final GattStatus ATTRIBUTE_NOT_FOUND
public static final GattStatus ATTRIBUTE_NOT_LONG
public static final GattStatus INSUFFICIENT_ENCRYPTION_KEY_SIZE
public static final GattStatus INVALID_ATTRIBUTE_VALUE_LENGTH
public static final GattStatus UNLIKELY_ERROR
public static final GattStatus INSUFFICIENT_ENCRYPTION
public static final GattStatus UNSUPPORTED_GROUP_TYPE
public static final GattStatus INSUFFICIENT_RESOURCES
public static final GattStatus DATABASE_OUT_OF_SYNC
public static final GattStatus VALUE_NOT_ALLOWED
public static final GattStatus NO_RESOURCES
public static final GattStatus INTERNAL_ERROR
public static final GattStatus WRONG_STATE
public static final GattStatus DB_FULL
public static final GattStatus BUSY
public static final GattStatus ERROR
public static final GattStatus CMD_STARTED
public static final GattStatus ILLEGAL_PARAMETER
public static final GattStatus PENDING
public static final GattStatus AUTHORIZATION_FAILED
public static final GattStatus MORE
public static final GattStatus INVALID_CFG
public static final GattStatus SERVICE_STARTED
public static final GattStatus ENCRYPTED_NO_MITM
public static final GattStatus NOT_ENCRYPTED
public static final GattStatus CONNECTION_CONGESTED
public static final GattStatus CCCD_CFG_ERROR
public static final GattStatus PROCEDURE_IN_PROGRESS
public static final GattStatus VALUE_OUT_OF_RANGE
public static final GattStatus CONNECTION_CANCELLED
public static final GattStatus FAILURE
public static final GattStatus UNKNOWN_STATUS_CODE
public static GattStatus[] values()
for (GattStatus c : GattStatus.values()) System.out.println(c);
public static GattStatus 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 null@NotNull public static @NotNull GattStatus fromValue(int value)