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

◆ pm_peer_data_delete()

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.

Note
Clearing data in persistent storage happens asynchronously.
Parameters
[in]peer_idPeer ID to clear data for.
[in]data_idThe data to clear.
Return values
NRF_SUCCESSIf the clear procedure was initiated successfully.
NRF_ERROR_INVALID_PARAMIf data_id was PM_PEER_DATA_ID_BONDING or invalid, or peer_id was invalid.
NRF_ERROR_NOT_FOUNDIf there was no data to clear for this peer ID/data ID combination.
NRF_ERROR_BUSYIf the underlying storage handler is busy with other storage operations. Try again after receiving a Peer Manager event.
NRF_ERROR_INVALID_STATEIf the Peer Manager is not initialized.
NRF_ERROR_INTERNALIf an internal error occurred.