sl_bt_evt_gatt_server_user_read_requestGATT Server#

Indicates that a remote GATT client is attempting to read a value of an attribute from the local GATT database, where the attribute was defined in the GATT database XML file to have the type="user".

Data Structures#


struct | sl_bt_evt_gatt_server_user_read_request_s | Data structure of the user_read_request event.

Macros#


define | sl_bt_evt_gatt_server_user_read_request_id 0x010a00a0#

| Identifier of the user_read_request event.

Detailed Description#

Indicates that a remote GATT client is attempting to read a value of an attribute from the local GATT database, where the attribute was defined in the GATT database XML file to have the type="user".

The parameter att_opcode informs which GATT procedure was used to read the value. The application needs to respond to this request by using the sl_bt_gatt_server_send_user_read_response command within 30 seconds, otherwise further GATT transactions are not allowed by the remote side.


Data Structure Documentation#

◆ sl_bt_evt_gatt_server_user_read_request_s#

struct sl_bt_evt_gatt_server_user_read_request_s#

Data structure of the user_read_request event.

Data Fields#

uint8_t | connection |

Connection handle

uint16_t | characteristic |

GATT characteristic handle. This value is normally received from the gatt_characteristic event.

uint8_t | att_opcode |

Enum sl_bt_gatt_att_opcode_t. Attribute opcode that informs the procedure from which the value was received.

uint16_t | offset |

Value offset