#[repr(u8)]pub enum AttError {
Show 18 variants
Success = 0,
InvalidHandle = 1,
ReadNotPermitted = 2,
WriteNotPermitted = 3,
InvalidPdu = 4,
InsufficientAuthentication = 5,
RequestNotSupported = 6,
InvalidOffset = 7,
InsufficientAuthorization = 8,
PrepareQueueFull = 9,
AttributeNotFound = 10,
AttributeNotLong = 11,
InsufficientEncryptionKeySize = 12,
InvalidAttributeValueLength = 13,
UnlikelyError = 14,
InsufficientEncryption = 15,
UnsupportedGroupType = 16,
InsufficientResources = 17,
}Expand description
The status a request is answered with.
These are the Bluetooth ATT error codes, so a central sees exactly the failure the protocol defines rather than a generic one. Both platforms transmit the same numbers.
Variants§
Success = 0
The operation succeeded. Not an error; answering with it is the normal reply.
InvalidHandle = 1
The attribute handle is not valid on this server.
ReadNotPermitted = 2
The attribute cannot be read.
WriteNotPermitted = 3
The attribute cannot be written.
InvalidPdu = 4
The request was malformed.
InsufficientAuthentication = 5
The link is not authenticated enough for this attribute.
RequestNotSupported = 6
The server does not support this request. What a dropped request answers.
InvalidOffset = 7
The offset is past the end of the attribute.
InsufficientAuthorization = 8
The client is not authorised for this attribute.
PrepareQueueFull = 9
Too many queued prepare-writes.
AttributeNotFound = 10
No attribute in the requested range.
AttributeNotLong = 11
The attribute cannot be read or written with a blob request.
InsufficientEncryptionKeySize = 12
The encryption key is too short for this attribute.
InvalidAttributeValueLength = 13
The value’s length is wrong for this attribute.
UnlikelyError = 14
The request failed for a reason with no better code. The catch-all.
InsufficientEncryption = 15
The link must be encrypted first.
UnsupportedGroupType = 16
The attribute type is not a supported grouping type.
InsufficientResources = 17
The server is out of resources to complete the request.