当前位置: 首页 > 工具软件 > PMManager > 使用案例 >

Peer Manager

尉迟禄
2023-12-01
ret_code_t pm_peers_delete(void  ) 

Function for deleting all data stored for all peers.

This function sends either a PM_EVT_PEERS_DELETE_SUCCEEDED or a PM_EVT_PEERS_DELETE_FAILED event. In addition, a PM_EVT_PEER_DELETE_SUCCEEDED or PM_EVT_PEER_DELETE_FAILED event is sent for each deleted peer.

Note
When there is no peer data in flash the  PM_EVT_PEER_DELETE_SUCCEEDED event is sent synchronously.
Warning
Use this function only when not connected or connectable. If a peer is or becomes connected or a  PM_PEER_DATA_FUNCTIONS function is used during this procedure (until the success or failure event happens), the behavior is undefined.
Return values
NRF_SUCCESSIf the deletion process was initiated successfully.
NRF_ERROR_INVALID_STATEIf the Peer Manager is not initialized.
NRF_ERROR_INTERNALIf an internal error occurred.
 类似资料:

相关阅读

相关文章

相关问答