![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t ble_db_discovery_service_register | ( | struct ble_db_discovery * | db_discovery, |
| const ble_uuid_t * | uuid ) |
#include <ble_db_discovery.h>
Register service UUID with the DB Discovery instance.
The application should use this function to inform which service it is interested in discovering at the server.
| [in,out] | db_discovery | DB discovery instance. |
| [in] | uuid | UUID of the service to be discovered at the server. |
| 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 function. |
| NRF_ERROR_NO_MEM | If the maximum number of allowed registrations has been reached. |