#include <ble_db_discovery.h>
Start the discovery of the GATT database at the server.
- Parameters
-
| [in,out] | db_discovery | DB Discovery instance. |
| [in] | conn_handle | The handle of the connection for which the discovery should be started. |
- Return values
-
| NRF_SUCCESS | On success. |
| NRF_ERROR_NULL | If db_discovery is NULL. |
| NRF_ERROR_INVALID_STATE | If this function is called without calling the ble_db_discovery_init, or without calling the ble_db_discovery_service_register. |
| NRF_ERROR_BUSY | If 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: