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

◆ ble_bas_on_db_disc_evt()

void ble_bas_on_db_disc_evt ( struct ble_bas_client * bas_client,
const struct ble_db_discovery_evt * evt )

#include <ble_bas_client.h>

Handle events from the Database Discovery module.

This function must be called by the application on a Database Discovery event. This function handles the event from the Database Discovery module, and determines whether it relates to the discovery of Battery Service at the peer. If it does, this function calls the application's event handler to indicate that the Battery Service was discovered at the peer. The function also populates the event with service-related information before providing it to the application.

Parameters
bas_clientBattery Service client structure.
[in]evtEvent received from the Database Discovery module.