![]() |
Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
|
This structure notifies that a Error Response PDU has been received from a GATT Server. More...
Data Fields | |
uint8_t | op_code |
The op code of the ATT Request that causes the Error Response. More... | |
uint16_t | attr_hdl |
Attribute handle that is target for the request. More... | |
uint16_t | rsp_code |
The error codes notified from the GATT Server. More... | |
This structure notifies that a Error Response PDU has been received from a GATT Server.
uint8_t st_ble_gattc_err_rsp_evt_t::op_code |
The op code of the ATT Request that causes the Error Response.
op_code |
---|
Exchange MTU Request(0x02) |
Find Information Request(0x04) |
Find By Type Value Request(0x06) |
Read By Type Request(0x08) |
Read Request(0x0A) |
Read Blob Request(0x0C) |
Read Multiple Request(0x0E) |
Read by Group Type Request(0x10) |
Write Request(0x12) |
Prepare Write Request(0x16) |
Execute Write Request(0x18) |
uint16_t st_ble_gattc_err_rsp_evt_t::attr_hdl |
Attribute handle that is target for the request.
uint16_t st_ble_gattc_err_rsp_evt_t::rsp_code |
The error codes notified from the GATT Server.
It is a bitwise OR of GATT Error Group ID : 0x3000 and the following error codes defined in Core Spec and Core Spec Supplement.
Error Code | description |
---|---|
BLE_ERR_GATT_INVALID_HANDLE(0x3001) | Invalid attribute handle |
BLE_ERR_GATT_READ_NOT_PERMITTED(0x3002) | The attribute cannot be read. |
BLE_ERR_GATT_WRITE_NOT_PERMITTED(0x3003) | The attribute cannot be written. |
BLE_ERR_GATT_INVALID_PDU(0x3004) | Invalid PDU. |
BLE_ERR_GATT_INSUFFICIENT_AUTHENTICATION(0x3005) | The authentication to access the attribute is insufficient. |
BLE_ERR_GATT_REQUEST_NOT_SUPPORTED(0x3006) | The request is not supported. |
BLE_ERR_GATT_INVALID_OFFSET(0x3007) | The specified offset is larger than the length of the attribute value. |
BLE_ERR_GATT_INSUFFICIENT_AUTHORIZATION(0x3008) | Authorization is required to access the attribute. |
BLE_ERR_GATT_PREPARE_WRITE_QUEUE_FULL(0x3009) | The Write Queue in the GATT Server is full. |
BLE_ERR_GATT_ATTRIBUTE_NOT_FOUND(0x300A) | The specified attribute is not found. |
BLE_ERR_GATT_ATTRIBUTE_NOT_LONG(0x300B) | The attribute cannot be read by Read Blob Request. |
BLE_ERR_GATT_INSUFFICIENT_ENC_KEY_SIZE(0x300C) | The Encryption Key Size is insufficient. |
BLE_ERR_GATT_INVALID_ATTRIBUTE_LEN(0x300D) | The length of the specified attribute is invalid. |
BLE_ERR_GATT_UNLIKELY_ERROR(0x300E) | Because an error has occurred, the process cannot be advanced. |
BLE_ERR_GATT_INSUFFICIENT_ENCRYPTION(0x300F) | Encryption is required to access the attribute. |
BLE_ERR_GATT_UNSUPPORTED_GROUP_TYPE(0x3010) | The type of the specified attribute is not supported. |
BLE_ERR_GATT_INSUFFICIENT_RESOURCES(0x3011) | The resource to complete the request is insufficient. |
0x3080 - 0x309F | Application Error. The upper layer defines the error codes. |
0x30E0 - 0x30FF | The error code defined in Common Profile and Service Error Core Specification Supplement(CSS). CSS ver.7 defines the error codes from 0x30FC to 0x30FF. |
BLE_ERR_GATT_WRITE_REQ_REJECTED(0x30FC) | The Write Request has not been completed due to the reason other than Permission. |
BLE_ERR_GATT_CCCD_IMPROPERLY_CFG(0x30FD) | The CCCD is set to be invalid. |
BLE_ERR_GATT_PROC_ALREADY_IN_PROGRESS(0x30FE) | The request is now in progress. |
BLE_ERR_GATT_OUT_OF_RANGE(0x30FF) | The attribute value is out of range. |