![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| void pm_local_database_has_changed | ( | void | ) |
#include <peer_manager.h>
Manually inform that the local database has changed.
This function sends a service changed indication to all bonded and/or connected peers that subscribe to this indication. If a bonded peer is not connected, the indication is sent when it reconnects. Every time an indication is sent, a PM_EVT_SERVICE_CHANGED_IND_SENT event occurs, followed by a PM_EVT_SERVICE_CHANGED_IND_CONFIRMED when the peer sends its confirmation. Peers that are not subscribed to the service changed indication when this function is called do not receive an indication, and no events are sent to the user. Likewise, if the service changed characteristic is not present in the local database, or if the CONFIG_PM_SERVICE_CHANGED Kconfig option is disabled, no indications are sent to the peers, and no events are sent to the user.