ATT error codes
C
#define ATT_ERR_INVALID_HANDLE (0x01U) #define ATT_ERR_READ_NOT_PERMITTED (0x02U) #define ATT_ERR_WRITE_NOT_PERMITTED (0x03U) #define ATT_ERR_INVALID_PDU (0x04U) #define ATT_ERR_INSUF_AUTHN (0x05U) #define ATT_ERR_REQUEST_NOT_SUPPORT (0x06U) #define ATT_ERR_INVALID_OFFSET (0x07U) #define ATT_ERR_INSUF_AUTHZ (0x08U) #define ATT_ERR_PREPARE_QUEUE_FULL (0x09U) #define ATT_ERR_ATTRIBUTE_NOT_FOUND (0x0aU) #define ATT_ERR_ATTRIBUTE_NOT_LONG (0x0bU) #define ATT_ERR_INSUF_ENC_KEY_SIZE (0x0cU) #define ATT_ERR_INVALID_ATTRIBUTE_VALUE_LENGTH (0x0dU) #define ATT_ERR_UNLIKELY_ERROR (0x0eU) #define ATT_ERR_INSUF_ENC (0x0fU) #define ATT_ERR_UNSUPPORTED_GROUP_TYPE (0x10U) #define ATT_ERR_INSUF_RESOURCE (0x11U) #define ATT_ERR_DATABASE_OUT_OF_SYNC (0x12U) #define ATT_ERR_VALUE_NOT_ALLOW (0x13U) #define ATT_ERR_APPLICATION_ERROR (0x80U)
Description
Defines ATT (Attribute Protocol) error codes used in BLE communication.
Macro Definition
Macro | Description |
---|---|
ATT_ERR_INVALID_HANDLE | Error Code: The attribute handle given was not valid on this server. |
ATT_ERR_READ_NOT_PERMITTED | Error Code: The attribute cannot be read. |
ATT_ERR_WRITE_NOT_PERMITTED | Error Code: The attribute cannot be written. |
ATT_ERR_INVALID_PDU | Error Code: The attribute PDU was invalid. |
ATT_ERR_INSUF_AUTHN | Error Code: The attribute requires authentication before it can be read or written. |
ATT_ERR_REQUEST_NOT_SUPPORT | Error Code: Attribute server does not support the request received from the client. |
ATT_ERR_INVALID_OFFSET | Error Code: Offset specified was past the end of the attribute. |
ATT_ERR_INSUF_AUTHZ | Error Code: The attribute requires authorization before it can be read or written. |
ATT_ERR_PREPARE_QUEUE_FULL | Error Code: Too many prepare writes have been queued. |
ATT_ERR_ATTRIBUTE_NOT_FOUND | Error Code: No attribute found within the given attribute handle range. |
ATT_ERR_ATTRIBUTE_NOT_LONG | Error Code: The attribute cannot be read or written using the Read Blob Request. |
ATT_ERR_INSUF_ENC_KEY_SIZE | Error Code: The Encryption Key Size used for encrypting this link is insufficient. |
ATT_ERR_INVALID_ATTRIBUTE_VALUE_LENGTH | Error Code: The attribute value length is invalid for the operation. |
ATT_ERR_UNLIKELY_ERROR | Error 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_ENC | Error Code: The attribute requires encryption before it can be read or written. |
ATT_ERR_UNSUPPORTED_GROUP_TYPE | Error Code: The attribute type is not a supported grouping attribute as defined by a higher layer specification. |
ATT_ERR_INSUF_RESOURCE | Error Code: Insufficient Resources to complete the request. |
ATT_ERR_DATABASE_OUT_OF_SYNC | Error Code: The server requires the client to rediscover the database. |
ATT_ERR_VALUE_NOT_ALLOW | Error Code: The attribute value is not allowed. |
ATT_ERR_APPLICATION_ERROR | Error Code: The application has set this error code. |