ATT error codes

C

#define ATT_ERR_INVALID_HANDLE                          0x01
#define ATT_ERR_READ_NOT_PERMITTED                      0x02
#define ATT_ERR_WRITE_NOT_PERMITTED                     0x03
#define ATT_ERR_INVALID_PDU                             0x04
#define ATT_ERR_INSUF_AUTHN                             0x05
#define ATT_ERR_REQUEST_NOT_SUPPORT                     0x06
#define ATT_ERR_INVALID_OFFSET                          0x07
#define ATT_ERR_INSUF_AUTHZ                             0x08
#define ATT_ERR_PREPARE_QUEUE_FULL                      0x09
#define ATT_ERR_ATTRIBUTE_NOT_FOUND                     0x0a
#define ATT_ERR_ATTRIBUTE_NOT_LONG                      0x0b
#define ATT_ERR_INSUF_ENC_KEY_SIZE                      0x0c
#define ATT_ERR_INVALID_ATTRIBUTE_VALUE_LENGTH          0x0d
#define ATT_ERR_UNLIKELY_ERROR                          0x0e
#define ATT_ERR_INSUF_ENC                               0x0f
#define ATT_ERR_UNSUPPORTED_GROUP_TYPE                  0x10
#define ATT_ERR_INSUF_RESOURCE                          0x11
#define ATT_ERR_DATABASE_OUT_OF_SYNC                    0x12
#define ATT_ERR_VALUE_NOT_ALLOW                         0x13
#define ATT_ERR_APPLICATION_ERROR                       0x80

Description

Defines ATT (Attribute Protocol) error codes used in BLE communication.

Macro Definition

MacroDescription
ATT_ERR_INVALID_HANDLEError Code: The attribute handle given was not valid on this server.
ATT_ERR_READ_NOT_PERMITTEDError Code: The attribute cannot be read.
ATT_ERR_WRITE_NOT_PERMITTEDError Code: The attribute cannot be written.
ATT_ERR_INVALID_PDUError Code: The attribute PDU was invalid.
ATT_ERR_INSUF_AUTHNError Code: The attribute requires authentication before it can be read or written.
ATT_ERR_REQUEST_NOT_SUPPORTError Code: Attribute server does not support the request received from the client.
ATT_ERR_INVALID_OFFSETError Code: Offset specified was past the end of the attribute.
ATT_ERR_INSUF_AUTHZError Code: The attribute requires authorization before it can be read or written.
ATT_ERR_PREPARE_QUEUE_FULLError Code: Too many prepare writes have been queued.
ATT_ERR_ATTRIBUTE_NOT_FOUNDError Code: No attribute found within the given attribute handle range.
ATT_ERR_ATTRIBUTE_NOT_LONGError Code: The attribute cannot be read or written using the Read Blob Request.
ATT_ERR_INSUF_ENC_KEY_SIZEError Code: The Encryption Key Size used for encrypting this link is insufficient.
ATT_ERR_INVALID_ATTRIBUTE_VALUE_LENGTHError Code: The attribute value length is invalid for the operation.
ATT_ERR_UNLIKELY_ERRORError Code: The attribute request that was requested has encountered an error that was unlikely, and therefore could not be completed as requested.
ATT_ERR_INSUF_ENCError Code: The attribute request that was requested has encountered an error that was unlikely, and therefore could not be completed as requested.
ATT_ERR_UNSUPPORTED_GROUP_TYPEError Code: The attribute type is not a supported grouping attribute as defined by a higher layer specification.
ATT_ERR_INSUF_RESOURCEError Code: Insufficient Resources to complete the request.
ATT_ERR_DATABASE_OUT_OF_SYNCError Code: The server requires the client to rediscover the database.
ATT_ERR_VALUE_NOT_ALLOWError Code: The attribute value is not allowed.
ATT_ERR_APPLICATION_ERRORError Code: The application has set this error code.