BLE_API v2.1.3

Macros | Typedefs
BLE Attribute Error Code Definition
BLE ATT/ GATT Definition

## Macros
#define | ERR_CODE_ATT_NO_ERROR 0x00
#define | ERR_CODE_ATT_INVALID_HANDLE 0x01
#define | ERR_CODE_ATT_READ_NOT_PERMITTED 0x02
#define | ERR_CODE_ATT_WRITE_NOT_PERMITTED 0x03
#define | ERR_CODE_ATT_INVALID_PDU 0x04
#define | ERR_CODE_ATT_INSUFFICIENT_AUTHENTICATION 0x05
#define | ERR_CODE_ATT_REQUEST_NOT_SUPPORTED 0x06
#define | ERR_CODE_ATT_INVALID_OFFSET 0x07
#define | ERR_CODE_ATT_INSUFFICIENT_AUTHORIZATION 0x08
#define | ERR_CODE_ATT_PREPARE_QUEUE_FULL 0x09
#define | ERR_CODE_ATT_ATTRIBUTE_NOT_FOUND 0x0A
#define | ERR_CODE_ATT_ATTRIBUTE_NOT_LONG 0x0B
#define | ERR_CODE_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE 0x0C
#define | ERR_CODE_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH 0x0D
#define | ERR_CODE_ATT_UNLIKELY_ERROR 0x0E
#define | ERR_CODE_ATT_INSUFFICIENT_ENCRYPTION 0x0F
#define | ERR_CODE_ATT_UNSUPPORTED_GROUP_TYPE 0x10
#define | ERR_CODE_ATT_INSUFFICIENT_RESOURCES 0x11
#define | ERR_CODE_ATT_DATABASE_OUT_OF_SYNC 0x12
#define | ERR_CODE_ATT_VALUE_NOT_ALLOWED 0x13
#define | ERR_CODE_ATT_RESERVED 0x14
#define | ERR_CODE_ATT_APPLICATION_ERROR 0x80
#define | ERR_CODE_ATT_WRITE_REQUEST_REJECTED 0xFC
#define | ERR_CODE_ATT_CLIENT_CHAR_CONFIG_DESCRTR_IMPROPERLY_CONFIGURED 0xFD
#define | ERR_CODE_ATT_PROCEDURE_ALREADY_IN_PROGRESS 0xFE
#define | ERR_CODE_ATT_OUT_OF_RANGE 0xFF

## Typedefs
typedef uint8_t | BleAttErrorRsp

## Detailed Description

BLE attribute error code definition.

## Macro Definition Documentation

## ◆ ERR_CODE_ATT_APPLICATION_ERROR

#define ERR_CODE_ATT_APPLICATION_ERROR 0x80

Attribute application error.

## ◆ ERR_CODE_ATT_ATTRIBUTE_NOT_FOUND

#define ERR_CODE_ATT_ATTRIBUTE_NOT_FOUND 0x0A

Attribute not found.

## ◆ ERR_CODE_ATT_ATTRIBUTE_NOT_LONG

#define ERR_CODE_ATT_ATTRIBUTE_NOT_LONG 0x0B

Attribute cannot be read or written using read/write blob requests.

## ◆ ERR_CODE_ATT_CLIENT_CHAR_CONFIG_DESCRTR_IMPROPERLY_CONFIGURED

#define ERR_CODE_ATT_CLIENT_CHAR_CONFIG_DESCRTR_IMPROPERLY_CONFIGURED 0xFD

Client characteristic configuration descriptor improperly configured.

## ◆ ERR_CODE_ATT_DATABASE_OUT_OF_SYNC

#define ERR_CODE_ATT_DATABASE_OUT_OF_SYNC 0x12

The server requests the client to rediscover the database.

## ◆ ERR_CODE_ATT_INSUFFICIENT_AUTHENTICATION

#define ERR_CODE_ATT_INSUFFICIENT_AUTHENTICATION 0x05

Authenticated link required.

## ◆ ERR_CODE_ATT_INSUFFICIENT_AUTHORIZATION

#define ERR_CODE_ATT_INSUFFICIENT_AUTHORIZATION 0x08

Insufficient authorization.

## ◆ ERR_CODE_ATT_INSUFFICIENT_ENCRYPTION

#define ERR_CODE_ATT_INSUFFICIENT_ENCRYPTION 0x0F

Encrypted link required.

## ◆ ERR_CODE_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE

#define ERR_CODE_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE 0x0C

Encryption key size is insufficient.

## ◆ ERR_CODE_ATT_INSUFFICIENT_RESOURCES

#define ERR_CODE_ATT_INSUFFICIENT_RESOURCES 0x11

Encrypted link required.

## ◆ ERR_CODE_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH

#define ERR_CODE_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH 0x0D

Invalid value length.

## ◆ ERR_CODE_ATT_INVALID_HANDLE

#define ERR_CODE_ATT_INVALID_HANDLE 0x01

Invalid attribute handle.

## ◆ ERR_CODE_ATT_INVALID_OFFSET

#define ERR_CODE_ATT_INVALID_OFFSET 0x07

Invalid offset

## ◆ ERR_CODE_ATT_INVALID_PDU

#define ERR_CODE_ATT_INVALID_PDU 0x04

Invalid PDU.

## ◆ ERR_CODE_ATT_NO_ERROR

#define ERR_CODE_ATT_NO_ERROR 0x00

The procedure finished without errors.

## ◆ ERR_CODE_ATT_OUT_OF_RANGE

#define ERR_CODE_ATT_OUT_OF_RANGE 0xFF

Out of range.

## ◆ ERR_CODE_ATT_PREPARE_QUEUE_FULL

#define ERR_CODE_ATT_PREPARE_QUEUE_FULL 0x09

Prepare queue full.

## ◆ ERR_CODE_ATT_PROCEDURE_ALREADY_IN_PROGRESS

#define ERR_CODE_ATT_PROCEDURE_ALREADY_IN_PROGRESS 0xFE

Procedure already in progress.

## ◆ ERR_CODE_ATT_READ_NOT_PERMITTED

#define ERR_CODE_ATT_READ_NOT_PERMITTED 0x02

Read not permitted.

## ◆ ERR_CODE_ATT_REQUEST_NOT_SUPPORTED

#define ERR_CODE_ATT_REQUEST_NOT_SUPPORTED 0x06

Request not supported.

## ◆ ERR_CODE_ATT_RESERVED

#define ERR_CODE_ATT_RESERVED 0x14

Reserved for future use.

## ◆ ERR_CODE_ATT_UNLIKELY_ERROR

#define ERR_CODE_ATT_UNLIKELY_ERROR 0x0E

Unlikely error.

## ◆ ERR_CODE_ATT_UNSUPPORTED_GROUP_TYPE

#define ERR_CODE_ATT_UNSUPPORTED_GROUP_TYPE 0x10

Attribute type is not a supported grouping attribute.

## ◆ ERR_CODE_ATT_VALUE_NOT_ALLOWED

#define ERR_CODE_ATT_VALUE_NOT_ALLOWED 0x13

The attribute parameter value was not allowed.

## ◆ ERR_CODE_ATT_WRITE_NOT_PERMITTED

#define ERR_CODE_ATT_WRITE_NOT_PERMITTED 0x03

Write not permitted.

## ◆ ERR_CODE_ATT_WRITE_REQUEST_REJECTED

#define ERR_CODE_ATT_WRITE_REQUEST_REJECTED 0xFC

Write request rejected.