Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]

Detailed Description

Enumerations

enum  e_r_ble_gatts_evt_t {
  BLE_GATTS_EVENT_EX_MTU_REQ = 0x3002,
  BLE_GATTS_EVENT_READ_BY_TYPE_RSP_COMP = 0x3009,
  BLE_GATTS_EVENT_READ_RSP_COMP = 0x300B,
  BLE_GATTS_EVENT_READ_BLOB_RSP_COMP = 0x300D,
  BLE_GATTS_EVENT_READ_MULTI_RSP_COMP = 0x300F,
  BLE_GATTS_EVENT_WRITE_RSP_COMP = 0x3013,
  BLE_GATTS_EVENT_PREPARE_WRITE_RSP_COMP = 0x3017,
  BLE_GATTS_EVENT_EXE_WRITE_RSP_COMP = 0x3019,
  BLE_GATTS_EVENT_HDL_VAL_CNF = 0x301E,
  BLE_GATTS_EVENT_DB_ACCESS_IND = 0x3040,
  BLE_GATTS_EVENT_CONN_IND = 0x3081,
  BLE_GATTS_EVENT_DISCONN_IND = 0x3082,
  BLE_GATTS_EVENT_INVALID = 0x30FF
}
 GATT Server Event Identifier. More...
 

Enumeration Type Documentation

◆ e_r_ble_gatts_evt_t

GATT Server Event Identifier.

Enumerator
BLE_GATTS_EVENT_EX_MTU_REQ 

This event notifies the application layer that a MTU Exchange Request PDU has been received from a GATT Client. Need to reply to the request by R_BLE_GATTS_RspExMtu().

Event Code: 0x3002

result:

BLE_SUCCESS(0x0000) Success

Event Data:

st_ble_gatts_ex_mtu_req_evt_t

BLE_GATTS_EVENT_READ_BY_TYPE_RSP_COMP 

This event notifies the application layer that a Read By Type Response PDU has been sent from GATT Server to the GATT Client.

Event Code: 0x3009

result:

BLE_SUCCESS(0x0000) Success
BLE_ERR_MEM_ALLOC_FAILED(0x000C) Insufficient resource is needed to generate the read by type response packet.

Event Data:

st_ble_gatts_read_by_type_rsp_evt_t

BLE_GATTS_EVENT_READ_RSP_COMP 

This event notifies the application layer that a Read Response PDU has been sent from GATT Server to the GATT Client.

Event Code: 0x300B

result:

BLE_SUCCESS(0x0000) Success
BLE_ERR_MEM_ALLOC_FAILED(0x000C) Insufficient resource is needed to generate the read response packet.

Event Data:

st_ble_gatts_read_rsp_evt_t

BLE_GATTS_EVENT_READ_BLOB_RSP_COMP 

This event notifies the application layer that a Read Blob Response PDU has been sent from GATT Server to the GATT Client.

Event Code: 0x300D

result:

BLE_SUCCESS(0x0000) Success
BLE_ERR_MEM_ALLOC_FAILED(0x000C) Insufficient resource is needed to generate the read blob response packet.

Event Data:

st_ble_gatts_read_blob_rsp_evt_t

BLE_GATTS_EVENT_READ_MULTI_RSP_COMP 

This event notifies the application layer that a Read Multiple Response PDU has been sent from GATT Server to the GATT Client.

Event Code: 0x300F

result:

BLE_SUCCESS(0x0000) Success
BLE_ERR_MEM_ALLOC_FAILED(0x000C) Insufficient resource is needed to generate the read multiple response packet.

Event Data:

st_ble_gatts_read_multi_rsp_evt_t

BLE_GATTS_EVENT_WRITE_RSP_COMP 

This event notifies the application layer that a Write Response PDU has been sent from GATT Server to the GATT Client.

Event Code: 0x3013

result:

BLE_SUCCESS(0x0000) Success
BLE_ERR_MEM_ALLOC_FAILED(0x000C) Insufficient resource is needed to generate the write response packet.

Event Data:

st_ble_gatts_write_rsp_evt_t

BLE_GATTS_EVENT_PREPARE_WRITE_RSP_COMP 

This event notifies the application layer that a Prepare Write Response PDU has been sent from GATT Server to the GATT Client.

Event Code: 0x3017

result:

BLE_SUCCESS(0x0000) Success
BLE_ERR_MEM_ALLOC_FAILED(0x000C) Insufficient resource is needed to generate the prepare write response packet.

Event Data:

st_ble_gatts_prepare_write_rsp_evt_t

BLE_GATTS_EVENT_EXE_WRITE_RSP_COMP 

This event notifies the application layer that a Execute Write Response PDU has been sent from GATT Server to the GATT Client.

Event Code: 0x3019

result:

BLE_SUCCESS(0x0000) Success
BLE_ERR_MEM_ALLOC_FAILED(0x000C) Insufficient resource is needed to generate the execute write response packet.

Event Data:

st_ble_gatts_exe_write_rsp_evt_t

BLE_GATTS_EVENT_HDL_VAL_CNF 

This event notifies the application layer that a Confirmation PDU has been received from a GATT Client.

Event Code: 0x301E

result:

BLE_SUCCESS(0x0000) Success
BLE_ERR_RSP_TIMEOUT(0x0011) 30 seconds or more have passed without receiving a Confirmation PDU since GATT Server sent an Indication PDU to the GATT Client.

Event Data:

st_ble_gatts_cfm_evt_t

BLE_GATTS_EVENT_DB_ACCESS_IND 

This event notifies the application layer that the GATT Database has been accessed from a GATT Client.

Event Code: 0x3040

result:

BLE_SUCCESS(0x0000) Success

Event Data:

st_ble_gatts_db_access_evt_t

BLE_GATTS_EVENT_CONN_IND 

This event notifies the application layer that the link with the GATT Client has been established.

Event Code: 0x3081

result:

BLE_SUCCESS(0x0000) Success

Event Data:

st_ble_gatts_conn_evt_t

BLE_GATTS_EVENT_DISCONN_IND 

This event notifies the application layer that the link with the GATT Client has been disconnected.

Event Code: 0x3082

result:

BLE_SUCCESS(0x0000) Success

Event Data:

st_ble_gatts_disconn_evt_t

BLE_GATTS_EVENT_INVALID 

Invalid GATT Server Event.

Event Code: 0x30FF

Event Data:

none