GATTC_DiscoverAllPrimaryServices

C

uint16_t GATTC_DiscoverAllPrimaryServices(uint16_t connHandle);

Description

Initiates the discovery of all primary services on the connected GATT server.

Note

The discovery process may result in multiple events indicating the status of the discovery until all services are found.

Parameters

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

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.