Enumeration

CBATTError

The possible errors returned by a GATT server (a remote peripheral) during Bluetooth low energy ATT transactions.

Declaration

typedef enum CBATTError : NSInteger {
    ...
} CBATTError;

Overview

These error constants derive from the Bluetooth ATT error codes, defined in the Bluetooth 4.0 specification. For more information, see the Bluetooth 4.0 specification, Volume 3, Part F, Section 3.4.1.1.

Topics

Error Codes

CBATTErrorSuccess

The ATT command or request successfully completed.

CBATTErrorInvalidHandle

The attribute handle is invalid on this peripheral.

CBATTErrorReadNotPermitted

The permissions prohibit reading the attribute’s value.

CBATTErrorWriteNotPermitted

The permissions prohibit writing the attribute’s value.

CBATTErrorInvalidPdu

The attribute Protocol Data Unit (PDU) is invalid.

CBATTErrorInsufficientAuthentication

Reading or writing the attribute’s value failed for lack of authentication.

CBATTErrorRequestNotSupported

The attribute server doesn’t support the request received from the client.

CBATTErrorInvalidOffset

The specified offset value was past the end of the attribute’s value.

CBATTErrorInsufficientAuthorization

Reading or writing the attribute’s value failed for lack of authorization.

CBATTErrorPrepareQueueFull

The prepare queue is full, as a result of there being too many write requests in the queue.

CBATTErrorAttributeNotFound

The attribute wasn’t found within the specified attribute handle range.

CBATTErrorAttributeNotLong

The ATT read blob request can’t read or write the attribute.

CBATTErrorInsufficientEncryptionKeySize

The encryption key size used for encrypting this link is insufficient.

CBATTErrorInvalidAttributeValueLength

The length of the attribute’s value is invalid for the intended operation.

CBATTErrorUnlikelyError

The ATT request encountered an unlikely error and wasn’t completed.

CBATTErrorInsufficientEncryption

Reading or writing the attribute’s value failed for lack of encryption.

CBATTErrorUnsupportedGroupType

The attribute type isn’t a supported grouping attribute as defined by a higher-layer specification.

CBATTErrorInsufficientResources

Resources are insufficient to complete the ATT request.

See Also

Errors

CBErrorDomain

The domain for Core Bluetooth errors.

CBError

The possible errors returned during Bluetooth low energy transactions.

CBATTErrorDomain

The domain for Core Bluetooth ATT errors.