MT2523 API Reference  LinkIt SDK v4

This section defines macros for the GATT Client. More...

Overview

This section defines macros for the GATT Client.

Macros

#define BT_GATTC_EXCHANGE_MTU   (BT_MODULE_GATT | 0x00010000)
 This is the confirmation event, generated from bt_gattc_exchange_mtu(), with bt_gatt_exchange_mtu_rsp_t as the payload. More...
 
#define BT_GATTC_DISCOVER_PRIMARY_SERVICE   (BT_MODULE_GATT | 0x00020000)
 This is the confirmation event, generated from bt_gattc_discover_primary_service(), with bt_gattc_read_by_group_type_rsp_t as the payload. More...
 
#define BT_GATTC_DISCOVER_PRIMARY_SERVICE_BY_UUID   (BT_MODULE_GATT | 0x00030000)
 This is the confirmation event, generated from bt_gattc_discover_primary_service_by_uuid(), with bt_gattc_find_by_type_value_rsp_t as the payload. More...
 
#define BT_GATTC_FIND_INCLUDED_SERVICES   (BT_MODULE_GATT | 0x00040000)
 This is the confirmation event, generated from bt_gattc_find_included_services(), with bt_gattc_read_by_type_rsp_t as the payload. More...
 
#define BT_GATTC_DISCOVER_CHARC   (BT_MODULE_GATT | 0x00050000)
 This is the confirmation event, generated from bt_gattc_discover_charc(), with bt_gattc_read_by_type_rsp_t as the payload. More...
 
#define BT_GATTC_DISCOVER_CHARC_DESCRIPTOR   (BT_MODULE_GATT | 0x00060000)
 This is the confirmation event, generated from bt_gattc_discover_charc_descriptor(), with bt_gattc_find_info_rsp_t as the payload. More...
 
#define BT_GATTC_READ_CHARC   (BT_MODULE_GATT | 0x00070000)
 This is the confirmation event, generated from bt_gattc_read_charc(), with bt_gattc_read_rsp_t as the payload. More...
 
#define BT_GATTC_READ_LONG_CHARC   (BT_MODULE_GATT | 0x00080000)
 This is the confirmation event, generated from bt_gattc_read_long_charc(), with bt_gattc_read_rsp_t as the payload. More...
 
#define BT_GATTC_READ_USING_CHARC_UUID   (BT_MODULE_GATT | 0x00090000)
 This is the confirmation event, generated from bt_gattc_read_using_charc_uuid(), with bt_gattc_read_by_type_rsp_t as the payload. More...
 
#define BT_GATTC_READ_MULTI_CHARC_VALUES   (BT_MODULE_GATT | 0x000A0000)
 This is the confirmation event, generated from bt_gattc_read_multi_charc_values(), with bt_gattc_read_multiple_rsp_t as the payload. More...
 
#define BT_GATTC_WRITE_CHARC   (BT_MODULE_GATT | 0x000D0000)
 This is the confirmation event, generated from bt_gattc_write_charc(), with bt_gattc_write_rsp_t as the payload. More...
 
#define BT_GATTC_WRITE_LONG_CHARC   (BT_MODULE_GATT | 0x000E0000)
 This is the confirmation event, generated from bt_gattc_prepare_write_charc() that writes long characteristic value or writes long characteristic descriptors, with bt_gattc_execute_write_rsp_t as the payload. More...
 
#define BT_GATTC_RELIABLE_WRITE_CHARC   (BT_MODULE_GATT | 0x000F0000)
 This is the confirmation event, generated from bt_gattc_prepare_write_charc() as the reliable writes, with bt_gattc_execute_write_rsp_t as the payload. More...
 
#define BT_GATTC_CHARC_VALUE_NOTIFICATION   (BT_MODULE_GATT | 0x00110000)
 This is the notification event with bt_gatt_handle_value_notification_t as the payload. More...
 
#define BT_GATTC_CHARC_VALUE_INDICATION   (BT_MODULE_GATT | 0x00120000)
 This is the indication event with bt_gatt_handle_value_indication_t as the payload. More...
 
#define BT_GATTC_CHARC_VALUE_CONFIRMATION   (BT_MODULE_GATT | 0x00130000)
 This is the confirmation event, generated from bt_gatts_send_charc_value_notification_indication(), with (uint32_t* connect_handle) as the payload. More...
 
#define BT_GATTC_NEW_EXCHANGE_MTU_REQ(name, mtu)
 This macro creates an exchange MTU request. More...
 
#define BT_GATTC_NEW_DISCOVER_PRIMARY_SERVICE_REQ(name)
 This macro creates a discover primary service request. More...
 
#define BT_GATTC_NEW_DISCOVER_PRIMARY_SERVICE_BY_UUID16_REQ(name, uuid16)
 This macro creates a discover primary service by UUID16 request. More...
 
#define BT_GATTC_NEW_DISCOVER_PRIMARY_SERVICE_BY_UUID128_REQ(name, uuid128)
 This macro creates a discover primary service by UUID128 request. More...
 
#define BT_GATTC_NEW_FIND_INCLUDED_SERVICE_REQ(name, start_handle, end_handle)
 This macro defines a find included service request. More...
 
#define BT_GATTC_NEW_DISCOVER_CHARC_REQ(name, start_handle, end_handle)
 This macro creates a discover characteristic request. More...
 
#define BT_GATTC_NEW_DISCOVER_CHARC_BY_UUID_REQ(name, start_handle, end_handle, uuid, len)
 This macro creates a discover characteristic by UUID request. More...
 
#define BT_GATTC_NEW_DISCOVER_CHARC_DESCRIPTOR_REQ(name, start_handle, end_handle)
 This macro creates a discover characteristic descriptor request. More...
 
#define BT_GATTC_NEW_READ_CHARC_REQ(name, attr_handle)
 This macro creates a read characteristic request. More...
 
#define BT_GATTC_NEW_READ_LONG_CHARC_REQ(name, attr_handle, offset)
 This macro creates a read long characteristic request. More...
 
#define BT_GATTC_NEW_READ_USING_CHARC_UUID_REQ(name, start_handle, end_handle, uuid, len)
 This macro creates a read using characteristic UUID request. More...
 
#define BT_GATTC_NEW_WRITE_WITHOUT_RSP_REQ(name, buffer, type, attribute_handle, attribute_value, attribute_len)
 This macro creates a write command request. More...
 
#define BT_GATTC_NEW_WRITE_CHARC_REQ(name, buffer, attribute_handle, attribute_value, attribute_len)
 This macro creates a write request. More...
 
#define BT_GATTC_NEW_PREPARE_WRITE_REQ(name, attr_handle, offset, value, value_len)
 This macro creates a prepare write request. More...
 
#define BT_GATTC_NEW_EXECUTE_WRITE_REQ(name, flag)
 This macro creates an execute write request. More...
 

Macro Definition Documentation

#define BT_GATTC_CHARC_VALUE_CONFIRMATION   (BT_MODULE_GATT | 0x00130000)

This is the confirmation event, generated from bt_gatts_send_charc_value_notification_indication(), with (uint32_t* connect_handle) as the payload.

#define BT_GATTC_CHARC_VALUE_INDICATION   (BT_MODULE_GATT | 0x00120000)

This is the indication event with bt_gatt_handle_value_indication_t as the payload.

#define BT_GATTC_CHARC_VALUE_NOTIFICATION   (BT_MODULE_GATT | 0x00110000)

This is the notification event with bt_gatt_handle_value_notification_t as the payload.

#define BT_GATTC_DISCOVER_CHARC   (BT_MODULE_GATT | 0x00050000)

This is the confirmation event, generated from bt_gattc_discover_charc(), with bt_gattc_read_by_type_rsp_t as the payload.

#define BT_GATTC_DISCOVER_CHARC_DESCRIPTOR   (BT_MODULE_GATT | 0x00060000)

This is the confirmation event, generated from bt_gattc_discover_charc_descriptor(), with bt_gattc_find_info_rsp_t as the payload.

#define BT_GATTC_DISCOVER_PRIMARY_SERVICE   (BT_MODULE_GATT | 0x00020000)

This is the confirmation event, generated from bt_gattc_discover_primary_service(), with bt_gattc_read_by_group_type_rsp_t as the payload.

#define BT_GATTC_DISCOVER_PRIMARY_SERVICE_BY_UUID   (BT_MODULE_GATT | 0x00030000)

This is the confirmation event, generated from bt_gattc_discover_primary_service_by_uuid(), with bt_gattc_find_by_type_value_rsp_t as the payload.

#define BT_GATTC_EXCHANGE_MTU   (BT_MODULE_GATT | 0x00010000)

This is the confirmation event, generated from bt_gattc_exchange_mtu(), with bt_gatt_exchange_mtu_rsp_t as the payload.

#define BT_GATTC_FIND_INCLUDED_SERVICES   (BT_MODULE_GATT | 0x00040000)

This is the confirmation event, generated from bt_gattc_find_included_services(), with bt_gattc_read_by_type_rsp_t as the payload.

#define BT_GATTC_NEW_DISCOVER_CHARC_BY_UUID_REQ (   name,
  start_handle,
  end_handle,
  uuid,
  len 
)
Value:
name.starting_handle = start_handle; \
name.ending_handle = end_handle; \
bt_uuid_load(&(name.type), (void *)uuid, len);
#define BT_ATT_OPCODE_READ_BY_TYPE_REQUEST
Read by type request.
Definition: bt_att.h:75
bt_uuid_t type
Attribute type.
Definition: bt_gattc.h:198
Discover All Characteristics of a Service or Discover Characteristics by UUID request.
Definition: bt_gattc.h:198
uint8_t opcode
BT_ATT_OPCODE_READ_BY_GROUP_TYPE_REQUEST.
Definition: bt_gattc.h:198

This macro creates a discover characteristic by UUID request.

Parameters
[in]nameis the name of the request.
[in]start_handleis the starting handle to search.
[in]end_handleis the ending handle to search.
[in]uuidis the buffer to hold the UUID to discover.
[in]lenis the buffer length to hold the UUID.
#define BT_GATTC_NEW_DISCOVER_CHARC_DESCRIPTOR_REQ (   name,
  start_handle,
  end_handle 
)
Value:
name.starting_handle = start_handle; \
name.ending_handle = end_handle;
#define BT_ATT_OPCODE_FIND_INFORMATION_REQUEST
Find information request.
Definition: bt_att.h:71
ATT find information request structure.
Definition: bt_att.h:174
uint8_t opcode
BT_ATT_OPCODE_FIND_INFORMATION_REQUEST.
Definition: bt_att.h:174

This macro creates a discover characteristic descriptor request.

Parameters
[in]nameis the name of the request.
[in]start_handleis the starting handle to search.
[in]end_handleis the ending handle to search.
#define BT_GATTC_NEW_DISCOVER_CHARC_REQ (   name,
  start_handle,
  end_handle 
)
Value:
name.starting_handle = start_handle; \
name.ending_handle = end_handle; \
uint16_t name##uuid_16 = BT_GATT_UUID16_CHARC; \
bt_uuid_load(&(name.type), (void *)&(name##uuid_16), 2);
#define BT_ATT_OPCODE_READ_BY_TYPE_REQUEST
Read by type request.
Definition: bt_att.h:75
#define BT_GATT_UUID16_CHARC
Characteristic.
Definition: bt_gatt.h:64
bt_uuid_t type
Attribute type.
Definition: bt_gattc.h:198
Discover All Characteristics of a Service or Discover Characteristics by UUID request.
Definition: bt_gattc.h:198
uint8_t opcode
BT_ATT_OPCODE_READ_BY_GROUP_TYPE_REQUEST.
Definition: bt_gattc.h:198

This macro creates a discover characteristic request.

Parameters
[in]nameis the name of the request.
[in]start_handleis the starting handle to search.
[in]end_handleis the ending handle to search.
#define BT_GATTC_NEW_DISCOVER_PRIMARY_SERVICE_BY_UUID128_REQ (   name,
  uuid128 
)
Value:
static uint8_t name##buf[30]; \
name.att_req = (bt_att_find_by_type_value_req_t *)(name##buf); \
name.att_req->opcode = BT_ATT_OPCODE_FIND_BY_TYPE_VALUE_REQUEST; \
name.att_req->starting_handle = 0x0001; \
name.att_req->ending_handle = 0xFFFF; \
name.att_req->uuid = BT_GATT_UUID16_PRIMARY_SERVICE; \
memcpy(&(name.att_req->attribute_value), &uuid128, 16);
ATT find by type value request structure.
Definition: bt_att.h:196
uint16_t attribute_value_length
The length of the attribute value.
Definition: bt_gattc.h:182
Discover Primary Service By UUID request.
Definition: bt_gattc.h:182
#define BT_ATT_OPCODE_FIND_BY_TYPE_VALUE_REQUEST
Find by type value request.
Definition: bt_att.h:73
bt_att_find_by_type_value_req_t * att_req
A pointer to the structure to find by type value request.
Definition: bt_gattc.h:182
#define BT_GATT_UUID16_PRIMARY_SERVICE
Primary service.
Definition: bt_gatt.h:61
uint8_t attribute_value[1]
The attribute value to find.
Definition: bt_att.h:196

This macro creates a discover primary service by UUID128 request.

Parameters
[in]nameis the name of the request.
[in]uuid128is the 128-bit UUID to discover.
#define BT_GATTC_NEW_DISCOVER_PRIMARY_SERVICE_BY_UUID16_REQ (   name,
  uuid16 
)
Value:
static uint8_t name##buf[9]; \
name.att_req = (bt_att_find_by_type_value_req_t *)(name##buf); \
name.att_req->opcode = BT_ATT_OPCODE_FIND_BY_TYPE_VALUE_REQUEST; \
name.att_req->starting_handle = 0x0001; \
name.att_req->ending_handle = 0xFFFF; \
name.att_req->uuid = BT_GATT_UUID16_PRIMARY_SERVICE; \
memcpy(&(name.att_req->attribute_value), &uuid16, 2);
ATT find by type value request structure.
Definition: bt_att.h:196
uint16_t attribute_value_length
The length of the attribute value.
Definition: bt_gattc.h:182
Discover Primary Service By UUID request.
Definition: bt_gattc.h:182
#define BT_ATT_OPCODE_FIND_BY_TYPE_VALUE_REQUEST
Find by type value request.
Definition: bt_att.h:73
bt_att_find_by_type_value_req_t * att_req
A pointer to the structure to find by type value request.
Definition: bt_gattc.h:182
#define BT_GATT_UUID16_PRIMARY_SERVICE
Primary service.
Definition: bt_gatt.h:61
uint8_t attribute_value[1]
The attribute value to find.
Definition: bt_att.h:196

This macro creates a discover primary service by UUID16 request.

Parameters
[in]nameis the name of the request.
[in]uuid16is the 16-bit UUID to discover.
#define BT_GATTC_NEW_DISCOVER_PRIMARY_SERVICE_REQ (   name)
Value:
.starting_handle = 0x0001, \
.ending_handle = 0xFFFF, \
}
Discover Primary Service request.
Definition: bt_gattc.h:173
#define BT_ATT_OPCODE_READ_BY_GROUP_TYPE_REQUEST
Read by group type request.
Definition: bt_att.h:83
uint8_t opcode
Can only be of type BT_ATT_OPCODE_READ_BY_GROUP_TYPE_REQUEST.
Definition: bt_gattc.h:173
#define BT_GATT_UUID16_PRIMARY_SERVICE
Primary service.
Definition: bt_gatt.h:61

This macro creates a discover primary service request.

Parameters
[in]nameis the name of the request.
#define BT_GATTC_NEW_EXCHANGE_MTU_REQ (   name,
  mtu 
)
Value:
name.client_rx_mtu = mtu; \
#define BT_ATT_OPCODE_EXCHANGE_MTU_REQUEST
Exchange MTU request.
Definition: bt_att.h:69
ATT exchange MTU request structure.
Definition: bt_att.h:155
uint8_t opcode
BT_ATT_OPCODE_EXCHANGE_MTU_REQUEST.
Definition: bt_att.h:155

This macro creates an exchange MTU request.

Parameters
[in]nameis the name of the request.
[in]mtuis the client RX MTU to exchange.
#define BT_GATTC_NEW_EXECUTE_WRITE_REQ (   name,
  flag 
)
Value:
name.flags = flag;
ATT execute write request structure.
Definition: bt_att.h:340
uint8_t opcode
BT_ATT_OPCODE_EXECUTE_WRITE_REQUEST.
Definition: bt_att.h:340
#define BT_ATT_OPCODE_EXECUTE_WRITE_REQUEST
Execute write request.
Definition: bt_att.h:89

This macro creates an execute write request.

Parameters
[in]nameis the name of the request.
[in]flagis the flag to determine whether to write or cancel all the prepared values.
#define BT_GATTC_NEW_FIND_INCLUDED_SERVICE_REQ (   name,
  start_handle,
  end_handle 
)
Value:
name.type16 = BT_GATT_UUID16_INCLUDE; \
name.starting_handle = start_handle; \
name.ending_handle = end_handle;
Discover Primary Service request.
Definition: bt_gattc.h:173
#define BT_ATT_OPCODE_READ_BY_TYPE_REQUEST
Read by type request.
Definition: bt_att.h:75
#define BT_GATT_UUID16_INCLUDE
Include service.
Definition: bt_gatt.h:63
uint8_t opcode
Can only be of type BT_ATT_OPCODE_READ_BY_GROUP_TYPE_REQUEST.
Definition: bt_gattc.h:173

This macro defines a find included service request.

Parameters
[in]nameis the name of the request.
[in]start_handleis the starting handle to search.
[in]end_handleis the ending handle to search.
#define BT_GATTC_NEW_PREPARE_WRITE_REQ (   name,
  attr_handle,
  offset,
  value,
  value_len 
)
Value:
static bt_att_prepare_write_req_t name##att_req; \
(name##att_req).opcode = BT_ATT_OPCODE_PREPARE_WRITE_REQUEST; \
(name##att_req).attribute_handle = attr_handle; \
(name##att_req).value_offset = offset; \
(name##att_req).part_attribute_value = value; \
name.attribute_value_length = value_len; \
name.att_req = &(name##att_req);
Write Long Characteristic Value or Write Long Characteristic Descriptors request. ...
Definition: bt_gattc.h:254
ATT prepare write request structure.
Definition: bt_att.h:320
#define BT_ATT_OPCODE_PREPARE_WRITE_REQUEST
Prepare write request.
Definition: bt_att.h:87

This macro creates a prepare write request.

Parameters
[in]nameis the name of the request.
[in]attr_handleis the handle of the attribute to write.
[in]offsetis the offset to begin writing.
[in]valueis the value to write.
[in]value_lenis the length of the value to write.
#define BT_GATTC_NEW_READ_CHARC_REQ (   name,
  attr_handle 
)
Value:
name.attribute_handle = attr_handle;
uint8_t opcode
BT_ATT_OPCODE_READ_REQUEST.
Definition: bt_att.h:235
#define BT_ATT_OPCODE_READ_REQUEST
Read request.
Definition: bt_att.h:77
ATT read request structure.
Definition: bt_att.h:235

This macro creates a read characteristic request.

Parameters
[in]nameis the name of the request.
[in]attr_handleis the attribute handle to read.
#define BT_GATTC_NEW_READ_LONG_CHARC_REQ (   name,
  attr_handle,
  offset 
)
Value:
name.attribute_handle = attr_handle; \
name.value_offset = offset;
uint8_t opcode
BT_ATT_OPCODE_READ_BLOB_REQUEST.
Definition: bt_att.h:254
#define BT_ATT_OPCODE_READ_BLOB_REQUEST
Read blob request.
Definition: bt_att.h:79
ATT read blob request structure.
Definition: bt_att.h:254

This macro creates a read long characteristic request.

Parameters
[in]nameis the name of the request.
[in]attr_handleis the attribute handle to read.
[in]offsetis the offset to start reading.
#define BT_GATTC_NEW_READ_USING_CHARC_UUID_REQ (   name,
  start_handle,
  end_handle,
  uuid,
  len 
)
Value:
name.starting_handle = start_handle; \
name.ending_handle = end_handle; \
bt_uuid_load(&name.type, (void *)uuid, len);
#define BT_ATT_OPCODE_READ_BY_TYPE_REQUEST
Read by type request.
Definition: bt_att.h:75
ATT read by type request structure.
Definition: bt_att.h:216
bt_uuid_t type
2 or 16 octet UUID.
Definition: bt_att.h:216
uint8_t opcode
BT_ATT_OPCODE_READ_BY_TYPE_REQUEST.
Definition: bt_att.h:216

This macro creates a read using characteristic UUID request.

Parameters
[in]nameis the name of the request.
[in]start_handleis the starting handle to search.
[in]end_handleis the ending handle to search.
[in]uuidis the buffer to hold the UUID to read.
[in]lenis the buffer length to hold the UUID.
#define BT_GATTC_NEW_WRITE_CHARC_REQ (   name,
  buffer,
  attribute_handle,
  attribute_value,
  attribute_len 
)
Value:
name.attribute_value_length = attribute_len; \
name.att_req = (bt_att_write_req_t *)(buffer); \
name.att_req->opcode = BT_ATT_OPCODE_WRITE_REQUEST; \
name.att_req->attribute_handle = attribute_handle; \
memcpy(name.att_req->attribute_value, attribute_value, attribute_len);
ATT write request structure.
Definition: bt_att.h:297
uint8_t attribute_value[1]
The value of the attribute to be written.
Definition: bt_att.h:297
uint16_t attribute_value_length
The length of attribute value.
Definition: bt_gattc.h:245
Write Characteristic Value or Write Characteristic Descriptors request.
Definition: bt_gattc.h:245
#define BT_ATT_OPCODE_WRITE_REQUEST
Write request.
Definition: bt_att.h:85
bt_att_write_req_t * att_req
A pointer to the structure to request attribute write.
Definition: bt_gattc.h:245

This macro creates a write request.

Parameters
[in]nameis the name of the request.
[in]bufferis the buffer to hold the content of the bt_gattc_write_charc_req_t.
[in]attribute_handleis the handle of the attribute to write.
[in]attribute_valueis the value to write.
[in]attribute_lenis the length of the value to write.
#define BT_GATTC_NEW_WRITE_WITHOUT_RSP_REQ (   name,
  buffer,
  type,
  attribute_handle,
  attribute_value,
  attribute_len 
)
Value:
name.attribute_value_length = attribute_len; \
name.att_req = (bt_att_write_command_t *)(buffer); \
name.att_req->opcode = (type == 0 ? BT_ATT_OPCODE_WRITE_COMMAND : BT_ATT_OPCODE_SIGNED_WRITE_COMMAND); \
name.att_req->attribute_handle = attribute_handle; \
memcpy(name.att_req->attribute_value, attribute_value, attribute_len);
ATT write request structure.
Definition: bt_att.h:297
uint8_t attribute_value[1]
The value of the attribute to be written.
Definition: bt_att.h:297
#define BT_ATT_OPCODE_SIGNED_WRITE_COMMAND
Signed write command.
Definition: bt_att.h:95
uint16_t attribute_value_length
The length of attribute value.
Definition: bt_gattc.h:236
#define BT_ATT_OPCODE_WRITE_COMMAND
Write command.
Definition: bt_att.h:94
Write Without Response or Signed Write Without Response request.
Definition: bt_gattc.h:236
bt_att_write_command_t * att_req
A pointer to the structure to request for an attribute write command.
Definition: bt_gattc.h:236

This macro creates a write command request.

Parameters
[in]nameis the name of the request.
[in]bufferis the buffer to hold the content of the bt_att_write_command_t.
[in]typeis the type of the write command, 0-WRITE_COMMAND, 1-SIGNED_WRITE_COMMAND.
[in]attribute_handleis the handle of the attribute to write.
[in]attribute_valueis the value to write.
[in]attribute_lenis the length of the value to write.
#define BT_GATTC_READ_CHARC   (BT_MODULE_GATT | 0x00070000)

This is the confirmation event, generated from bt_gattc_read_charc(), with bt_gattc_read_rsp_t as the payload.

#define BT_GATTC_READ_LONG_CHARC   (BT_MODULE_GATT | 0x00080000)

This is the confirmation event, generated from bt_gattc_read_long_charc(), with bt_gattc_read_rsp_t as the payload.

#define BT_GATTC_READ_MULTI_CHARC_VALUES   (BT_MODULE_GATT | 0x000A0000)

This is the confirmation event, generated from bt_gattc_read_multi_charc_values(), with bt_gattc_read_multiple_rsp_t as the payload.

#define BT_GATTC_READ_USING_CHARC_UUID   (BT_MODULE_GATT | 0x00090000)

This is the confirmation event, generated from bt_gattc_read_using_charc_uuid(), with bt_gattc_read_by_type_rsp_t as the payload.

#define BT_GATTC_RELIABLE_WRITE_CHARC   (BT_MODULE_GATT | 0x000F0000)

This is the confirmation event, generated from bt_gattc_prepare_write_charc() as the reliable writes, with bt_gattc_execute_write_rsp_t as the payload.

#define BT_GATTC_WRITE_CHARC   (BT_MODULE_GATT | 0x000D0000)

This is the confirmation event, generated from bt_gattc_write_charc(), with bt_gattc_write_rsp_t as the payload.

#define BT_GATTC_WRITE_LONG_CHARC   (BT_MODULE_GATT | 0x000E0000)

This is the confirmation event, generated from bt_gattc_prepare_write_charc() that writes long characteristic value or writes long characteristic descriptors, with bt_gattc_execute_write_rsp_t as the payload.