GATTC_DiscoverAllCharacteristics

C

uint16_t GATTC_DiscoverAllCharacteristics(uint16_t connHandle, uint16_t startHandle, uint16_t endHandle);

Description

Starts the discovery of all characteristics within a specified handle range on the GATT server.

Note

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

Events generated

GATTC_EVT_ERROR_RESP indicates ongoing discovery or finalization of the process.

GATTC_EVT_DISC_CHAR_RESP indicates an error or the end of the discovery process if no characteristics are found or the last characteristic's value handle does not match the end handle.

ATT_EVT_TIMEOUT indicates a timeout waiting for the server's response.

Parameters

ParameterDescription
[in] connHandleHandle of the connection to discover the characteristics for.
[in] startHandleStart of the handle range for discovery.
[in] endHandleEnd of the handle range for discovery.

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.