NRF5 pm_peers_delete
时间: 2023-09-18 22:11:09 浏览: 46
NRF5 pm_peers_delete is a function in the Nordic SoftDevice that is used to delete a peer device from the peer manager. The peer manager is a module in the SoftDevice that manages the bonds with other Bluetooth devices.
When a device is bonded with another device, a bond is created that allows the devices to securely communicate with each other. The peer manager is responsible for managing these bonds and ensuring that the devices can reconnect with each other in the future.
The pm_peers_delete function is used to delete a bond between two devices. This can be useful if a device is lost or stolen, or if a user wants to remove a device from their trusted list.
To use the pm_peers_delete function, the device must first be connected to the peer manager. Once connected, the function can be called with the ID of the peer device to be deleted. The SoftDevice will then remove the bond between the two devices and update its internal database.
Overall, the pm_peers_delete function is an important tool for managing Bluetooth connections and ensuring that devices can connect securely and reliably.