Go to the documentation of this file.
55 #ifndef __BLE_GATTC_H__
56 #define __BLE_GATTC_H__
474 uint16_t
ble_gattc_write(uint8_t conn_idx, uint16_t handle, uint16_t offset, uint16_t length,
const uint8_t *p_value);
492 uint16_t
ble_gattc_write_prepare(uint8_t conn_idx, uint16_t handle, uint16_t offset, uint16_t length,
const uint8_t *p_value);
529 uint16_t
ble_gattc_write_no_resp(uint8_t conn_idx,
bool signed_write, uint16_t handle, uint16_t length,
const uint8_t *p_value);
uint16_t handle
Value handle.
uint8_t uuid_len
Attribute UUID length.
GATTC Notification and Indication event for BLE_GATTC_EVT_NTF_IND.
@ BLE_GATTC_BROWSE_NONE
No Attribute Information.
GATT Client Read response event for BLE_GATTC_EVT_READ_RSP.
@ BLE_GATTC_BROWSE_ATTR_VAL
Attribute Value definition.
uint16_t count
Descriptor count.
GATTC Browse service(s) event for BLE_GATTC_EVT_SRVC_BROWSE.
#define BLE_ATT_UUID_128_LEN
UUID length: 16 bytes.
ble_gattc_evt_ntf_ind_t ntf_ind
Handle value Notification/Indication response.
uint16_t handle_value
Handle of the Characteristic Value.
uint8_t * p_uuid
Service UUID.
uint16_t ble_gattc_write_prepare(uint8_t conn_idx, uint16_t handle, uint16_t offset, uint16_t length, const uint8_t *p_value)
Prepare Long/Reliable Write to remote GATT server.
uint16_t end_hdl
Included Service end handle.
uint16_t start_hdl
Start handle.
uint16_t ble_gattc_included_services_discover(uint8_t conn_idx, uint16_t start_hdl, uint16_t end_hdl)
Discover Included Services on remote GATT server.
uint16_t start_hdl
Service start handle.
uint16_t handle_count
Handle count of the multiple attributes to be read.
ble_gattc_read_value_t * value
Value(s) list.
uint16_t length
Write length.
uint8_t * p_value
Value to write.
uint16_t end_hdl
End handle.
ble_gattc_evt_incl_disc_t inc_srvc_disc
Include service discovery response event.
uint16_t ble_gattc_char_desc_discover(uint8_t conn_idx, uint16_t start_hdl, uint16_t end_hdl)
Discover Characteristics Descriptors on remote GATT server.
uint16_t len
Known value: length of the handle (len shall not be set to 0).
uint16_t count
Value Count.
GATT Client Write Response event for BLE_GATTC_EVT_WRITE_RSP.
@ BLE_GATTC_BROWSE_ATTR_CHAR
Characteristic Declaration.
uint16_t offset
value offset to start with.
uint16_t handle_decl
Handle of the Characteristic Declaration.
uint16_t ble_gattc_mtu_exchange(uint8_t conn_idx)
Perform MTU Exchange.
uint16_t handle
Attribute handle.
uint8_t uuid_len
Descriptor UUID length.
uint8_t uuid_len
Service UUID length.
ble_gattc_evt_write_t write_rsp
Write response event.
uint8_t uuid_len
Characteristic UUID length.
GATT service discovery event for BLE_GATTC_EVT_PRIMARY_SRVC_DISC.
uint8_t uuid_len
Service UUID length.
uint16_t ble_gattc_services_browse(uint8_t conn_idx, const ble_uuid_t *p_srvc_uuid)
Browse all Primary Services or specific Primary Service information on remote GATT server.
ble_gattc_desc_t * char_descs
Descriptor data.
ble_gattc_browse_attr_t attr
Information about Attribute.
ble_gattc_attr_type_t
GATT Client Service Discover Attribute type IDs.
ble_gattc_multiple_att_t * p_read_multiple
Pointer to the multiple attributes to be read.
GATTC Browse information about Characteristic.
Define the chip configuration.
ble_gattc_evt_char_disc_t char_disc
Characteristic discovery response event.
ble_gattc_browse_inc_srvc_t inc_srvc
Information about Included Service.
uint8_t uuid_len
Included Service UUID length.
uint16_t handle
Attribute handle.
GATTC write without response structure.
uint16_t handle
Attribute handle.
uint16_t handle
Attribute handle.
ble_gattc_include_t * includes
Include data.
uint16_t end_hdl
Service end handle.
File that contains error codes.
ble_gattc_attr_type_t attr_type
Attribute type.
uint16_t end_hdl
End handle.
@ BLE_GATTC_BROWSE_INC_SRVC
Included Service information.
uint8_t * p_value
Value to write.
uint16_t ble_gattc_write(uint8_t conn_idx, uint16_t handle, uint16_t offset, uint16_t length, const uint8_t *p_value)
Write (long) Characteristic (Descriptor) Value.
uint8_t uuid_len
Service UUID length.
uint16_t ble_gattc_primary_services_discover(uint8_t conn_idx, const ble_uuid_t *p_srvc_uuid)
Discover Primary Services on remote GATT server.
uint16_t ble_gattc_write_no_resp(uint8_t conn_idx, bool signed_write, uint16_t handle, uint16_t length, const uint8_t *p_value)
Write Attribute to remote GATT server (without response).
ble_gattc_attr_type_t attr_type
Attribute type.
uint16_t length
Write length.
ble_gattc_attr_type_t attr_type
Attribute type.
GATT characteristic discovery event for BLE_GATTC_EVT_CHAR_DISC.
ble_uuid_t * p_uuid
Characteristic UUID.
uint16_t count
Characteristic count.
uint16_t offset
Offset of the attribute value.
uint16_t count
Include count.
ble_gatt_evt_type_t type
Event type.
ble_gatt_evt_type_t
GATT common events.
uint16_t ble_gattc_read(uint8_t conn_idx, uint16_t handle, uint16_t offset)
Read Attribute from remote GATT server.
ble_uuid_t * p_uuid
Characteristic UUID.
uint16_t start_hdl
Included Service start handle.
uint16_t ble_gattc_char_discover(uint8_t conn_idx, uint16_t start_hdl, uint16_t end_hdl, const ble_uuid_t *p_char_uuid)
Discover Characteristics on remote GATT server.
uint8_t * p_value
Pointer to the attribute value data.
GATTC write attribute value structure.
uint8_t * p_uuid
Descriptor UUID.
@ BLE_GATTC_BROWSE_ATTR_DESC
Attribute Descriptor.
uint16_t ble_gattc_indicate_cfm(uint8_t conn_idx, uint16_t handle)
Confirm Reception of Indication.
uint16_t count
Service count.
bool signed_write
True if signed write should be used when possible/applicable.
ble_gattc_evt_srvc_disc_t prim_srvc_disc
Primary service discovery response event.
uint8_t prop
Value property.
uint8_t * p_uuid
Characteristic UUID.
GATTC read by characteristic UUID structure.
uint16_t end_hdl
End handle.
union ble_gattc_browse_attr_info * info
Attribute information presented in the service(array length = end_hdl - start_hdl);If attr_type is eq...
uint8_t index
Index of connection.
uint16_t start_hdl
Start handle.
GATT characteristic descriptor discovery event for BLE_GATTC_EVT_CHAR_DESC_DISC.
ble_gattc_evt_char_desc_disc_t char_desc_disc
Characteristic descriptor discovery response event.
ble_gattc_char_t * chars
Characteristic data.
GATTC Browse information about Included Service.
GATTC Browse attribute information.
uint8_t * p_uuid
Service UUID.
ble_gattc_evt_browse_srvc_t srvc_browse
Browce service discovery response event.
ble_gattc_service_t * services
Service data.
ble_gattc_evt_read_t read_rsp
Read response event.
uint16_t ble_gattc_read_by_uuid(uint8_t conn_idx, uint16_t start_hdl, uint16_t end_hdl, const ble_uuid_t *p_char_uuid)
Read Attribute by UUID.
uint8_t uuid_len
Characteristic UUID length.
ble_gattc_browse_attr_char_t attr_char
Information about Characteristic.
GATT include discovery event for BLE_GATTC_EVT_INCLUDE_SRVC_DISC.
uint16_t start_hdl
Start handle.
uint16_t attr_hdl
Attribute handle.
uint16_t attr_hdl
Attribute handle.
uint8_t * p_value
Pointer to the attribute value data.
uint16_t length
Attribute value length.
uint16_t handle
Attribute handle.
uint16_t handle
Attribute handle.
GATTC Browse information about Attribute.
ble_gattc_attr_type_t attr_type
Attribute type.
uint16_t ble_gattc_write_execute(uint8_t conn_idx, bool execute)
Execute Reliable/Long Write to remote GATT server.
uint16_t ble_gattc_read_multiple(uint8_t conn_idx, const ble_gattc_read_multiple_t *p_param)
Initiate a Read Multiple Characteristic Values procedure.
uint16_t length
Attribute value length.
uint16_t end_hdl
End handle.
uint16_t start_hdl
Start handle.
BLE GATTC event structure.
GATTC discovery characteristic structure.