S145 SoftDevice for nRF54L15/nRF54L10/nRF54L05 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_ble_gattc_primary_services_discover()

uint32_t sd_ble_gattc_primary_services_discover ( uint16_t conn_handle,
uint16_t start_handle,
ble_uuid_t const * p_srvc_uuid )

#include <ble_gattc.h>

Initiate or continue a GATT Primary Service Discovery procedure.

This function initiates or resumes a Primary Service discovery procedure, starting from the supplied handle. If the last service has not been reached, this function must be called again with an updated start handle value to continue the search. See also ble_gattc_opt_uuid_disc_t.

Events generated
BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP
Relevant Message Sequence Charts
GATTC Primary Service Discovery
Parameters
[in]conn_handleThe connection handle identifying the connection to perform this procedure on.
[in]start_handleHandle to start searching from.
[in]p_srvc_uuidPointer to the service UUID to be found. If it is NULL, all primary services will be returned.
Return values
NRF_SUCCESSSuccessfully started or resumed the Primary Service Discovery procedure.
BLE_ERROR_INVALID_CONN_HANDLEInvalid Connection Handle.
NRF_ERROR_INVALID_STATEInvalid Connection State.
NRF_ERROR_INVALID_PARAMInvalid parameter(s) supplied.
NRF_ERROR_BUSYClient procedure already in progress.
NRF_ERROR_TIMEOUTThere has been a GATT procedure timeout. No new GATT procedure can be performed without reestablishing the connection.