GATTC_DiscoverAllPrimaryServices

C

uint16_t GATTC_DiscoverAllPrimaryServices(uint16_t connHandle);

Description

GATT Client starts the discovery of all primary services when this API is called. All primary services in the handle range 0x0001 - 0xFFFF will be discovered with a single call to this API.

The event GATTC_EVT_DISC_PRIM_SERV_RESP may be generated multiple times until all services are discovered.

Following events may be generated on the GATT client:

Parameters

ParameterDescription
[in] connHandleHandle of the connection to discover the services for.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully starts the discovering.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAInvalid parameters. Connection handle is not valid.
MBA_RES_BUSYGATT Client is busy. Another request is ongoing.