This module deals with storing and maintaining local address information in flash.
More...
This module deals with storing and maintaining local address information in flash.
ret_code_t m_coms_ble_addr_init |
( |
void |
| ) |
|
Function for initializing the module.
- Returns
- NRF_SUCCESS on success, otherwise an error code.
ret_code_t m_coms_ble_addr_local_addr_get |
( |
pm_peer_id_t |
peer_id, |
|
|
ble_gap_addr_t * |
p_ble_addr |
|
) |
| |
Function for getting the BLE address from the application context flash area of the Device Manager.
- Parameters
-
[in] | peer_id | Peer Manager device ID. |
[out] | p_ble_addr | BLE GAP address. |
- Returns
- NRF_SUCCESS on success, otherwise an error code.
ret_code_t m_coms_ble_addr_local_addr_new |
( |
ble_gap_addr_t * |
addr | ) |
|
Function for getting a new BLE address used for new bonds.
- Parameters
-
[out] | addr | Pointer to the new address structure. |
- Returns
- Return values
-
NRF_SUCCESS | |
NRF_ERROR_INVALID_STATE | |
ret_code_t m_coms_ble_addr_local_addr_set |
( |
pm_peer_id_t |
peer_id, |
|
|
ble_gap_addr_t * |
p_ble_addr |
|
) |
| |
Function for writing the currently used BLE address to the application context flash area of the Peer Manager.
- Parameters
-
[in] | peer_id | Peer Manager device ID. |
[in] | p_ble_addr | BLE address used with the current bond. |
- Returns
- NRF_SUCCESS on success, otherwise an error code.
ret_code_t m_coms_ble_addr_peer_ids_get |
( |
pm_peer_id_t * |
p_peer_ids, |
|
|
unsigned int * |
p_peers_num |
|
) |
| |
Function for getting the device IDs and the number of bonded hosts.
- Parameters
-
[out] | p_peer_ids | Pointer to an array of peer IDs. |
[out] | p_peers_num | Number of peer IDs found. |
- Returns
- NRF_SUCCESS on success, otherwise an error code.