nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_db_discovery_start()

uint32_t ble_db_discovery_start ( struct ble_db_discovery * db_discovery,
uint16_t conn_handle )

#include <ble_db_discovery.h>

Start the discovery of the GATT database at the server.

Parameters
[in,out]db_discoveryDB Discovery instance.
[in]conn_handleThe handle of the connection for which the discovery should be started.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf db_discovery is NULL.
NRF_ERROR_INVALID_STATEIf this function is called without calling the ble_db_discovery_init, or without calling the ble_db_discovery_service_register.
NRF_ERROR_BUSYIf a discovery is already in progress using db_discovery. Use a different database discovery instance, or wait for a DB Discovery event before retrying.
Returns
In addition, this function may return any error returned by the following functions: