![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| void ble_nus_client_on_db_disc_evt | ( | struct ble_nus_client * | nus_client, |
| const struct ble_db_discovery_evt * | evt ) |
#include <ble_nus_client.h>
Handle events from the Database Discovery library.
This function must be called from the application on a Database Discovery event. It handles the event from the Database Discovery library, and determines whether it relates to the discovery of NUS at the peer. If it does, the function calls the application's event handler to indicate that NUS was discovered at the peer. The function also populates the event with service-related information before providing it to the application.
| [in] | nus_client | NUS client structure. |
| [in] | evt | Event received from the Database Discovery library. |