![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint16_t pm_next_peer_id_get | ( | uint16_t | prev_peer_id | ) |
#include <peer_manager.h>
Get the next peer ID in the sequence of all used peer IDs.
This function can be used to loop through all used peer IDs. The order in which peer IDs are returned should be considered unpredictable. PM_PEER_ID_INVALID is considered to be before the first and after the last used peer ID.
| [in] | prev_peer_id | The previous peer ID. |
prev_peer_id was PM_PEER_ID_INVALID, the next peer ID is the first used peer ID. If prev_peer_id was the last used peer ID, the function returns PM_PEER_ID_INVALID.