![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t pm_peer_data_delete | ( | uint16_t | peer_id, |
| enum pm_peer_data_id | data_id ) |
#include <peer_manager.h>
Delete specific data stored for a peer.
This function deletes specific data that is stored for a peer. Note that bonding data cannot be cleared separately.
To delete all data for a peer (including bonding data), use pm_peer_delete.
| [in] | peer_id | Peer ID to clear data for. |
| [in] | data_id | The data to clear. |
| NRF_SUCCESS | If the clear procedure was initiated successfully. |
| NRF_ERROR_INVALID_PARAM | If data_id was PM_PEER_DATA_ID_BONDING or invalid, or peer_id was invalid. |
| NRF_ERROR_NOT_FOUND | If there was no data to clear for this peer ID/data ID combination. |
| NRF_ERROR_BUSY | If the underlying storage handler is busy with other storage operations. Try again after receiving a Peer Manager event. |
| NRF_ERROR_INVALID_STATE | If the Peer Manager is not initialized. |
| NRF_ERROR_INTERNAL | If an internal error occurred. |