GATTC_DiscoverPrimaryServiceByUUID

C

uint16_t GATTC_DiscoverPrimaryServiceByUUID(uint16_t connHandle, GATTC_DiscoverPrimaryServiceParams_T *p_discParams);

Description

Begins the discovery of primary services by UUID within a specified handle range on the GATT server.

Note

The discovery may result in multiple events as services are found.

Parameters

ParameterDescription
[in] connHandleHandle of the connection to discover the services.
[in] p_discParamsPointer to parameters specifying the UUID and handle range for discovery. See GATTC_DiscoverPrimaryServiceParams_T.

Return values

Return valueDescription
MBA_RES_SUCCESSDiscovery process successfully started.
MBA_RES_OOMMemory allocation failure occurred internally.
MBA_RES_INVALID_PARAInvalid parameters, such as an invalid connection handle.
MBA_RES_BUSYGATT Client is busy with another ongoing request.