Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
d37ff6f
include: bluetooth: peer_manager: place const before storage type
anhmolt Oct 20, 2025
8dd756a
lib: peer_manager: Log peers delete successful as info and not error
anhmolt Sep 23, 2025
853e362
lib: peer_manager: use uint16_t in place of pm_peer_id_t
anhmolt Oct 16, 2025
aeb56f8
lib: peer_manager: use uint32_t in place of pm_store_token_t
anhmolt Oct 16, 2025
8754caa
lib: peer_manager: use uint16_t in place of pm_sec_error_code_t
anhmolt Oct 16, 2025
d1bbafc
lib: peer_manager: remove ble_gatt_db typedefs
anhmolt Oct 20, 2025
a5d7926
lib: peer_manager: remove typedefs for public structs and enums
anhmolt Oct 20, 2025
37d97a4
lib: peer_manager: remove internal typedefs for structs and enums
anhmolt Oct 20, 2025
8a77ae1
lib: peer_manager: move const keyword before storage type
anhmolt Oct 20, 2025
87ddaea
lib: peer_manager: rework mutex/atomic in gatt_cache_manager
anhmolt Oct 20, 2025
2fcc2ca
lib: peer_manager: remove sdk_macros
anhmolt Oct 21, 2025
01607fc
lib: peer_manager: id_manager: wrong wlist_addr_cnt input value
anhmolt Oct 21, 2025
818d124
lib: peer_manager: remove NRF_PM_DEBUG_CHECK and use assert
anhmolt Oct 21, 2025
9a6db13
lib: peer_manager: small include header cleanup
anhmolt Oct 21, 2025
611adc8
lib: peer_manager: fixes for PM_HANDLER_SEC_DELAY_MS greater than zero
anhmolt Oct 13, 2025
d1f3d8b
lib: peer_manager: cleanup pm handler sec delay functionality
anhmolt Oct 21, 2025
119adde
lib: peer_manager: remove hungarian notation in internal module files
anhmolt Oct 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/nrf-bm/libraries/bluetooth/ble_peer_manager.rst
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ The handlers can be provided to the :c:func:`pm_register` function directly, or

.. code-block:: c

static void pm_evt_handler(pm_evt_t const *p_evt)
static void pm_evt_handler(const struct pm_evt *p_evt)
{
pm_handler_on_pm_evt(p_evt);
pm_handler_disconnect_on_sec_failure(p_evt);
Expand Down Expand Up @@ -349,7 +349,7 @@ The store operation is finished when either the :c:enum:`PM_EVT_PEER_DATA_UPDATE
.. code-block:: c

uint32_t err;
pm_store_token_t store_token;
uint32_t store_token;

err = pm_peer_data_remote_db_store(peer_id, array_of_services, number_of_services, &store_token);
if (err != NRF_ERROR_BUSY) {
Expand All @@ -362,7 +362,7 @@ The :c:func:`pm_peer_data_store` function can also be used directly, as in the f
.. code-block:: c

uint32_t err;
pm_store_token_t store_token;
uint32_t store_token;

err = pm_peer_data_store(peer_id, PM_PEER_DATA_ID_GATT_REMOTE, array_of_services, number_of_services, &store_token);
if (err != NRF_ERROR_BUSY) {
Expand All @@ -382,9 +382,9 @@ The following example shows how to use the :c:func:`pm_whitelist_set` function t
{
/* Fetch a list of peer IDs from Peer Manager and whitelist them. */

pm_peer_id_t peer_ids[8] = {PM_PEER_ID_INVALID};
uint16_t peer_ids[8] = {PM_PEER_ID_INVALID};
uint32_t n_peer_ids = 0;
pm_peer_id_t peer_id = pm_next_peer_id_get(PM_PEER_ID_INVALID);
uint16_t peer_id = pm_next_peer_id_get(PM_PEER_ID_INVALID);

while((peer_id != PM_PEER_ID_INVALID) && (n_peer_ids < 8)) {
peer_ids[n_peer_ids++] = peer_id;
Expand Down
24 changes: 24 additions & 0 deletions doc/nrf-bm/release_notes/release_notes_changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,30 @@ Libraries
* The ``CONFIG_PM_LESC_ENABLED`` Kconfig option is renamed to :kconfig:option:`CONFIG_PM_LESC`.
* The ``CONFIG_PM_RA_PROTECTION_ENABLED`` Kconfig option is renamed to :kconfig:option:`CONFIG_PM_RA_PROTECTION`.
* The :kconfig:option:`CONFIG_PM_SERVICE_CHANGED` Kconfig option to depend on the :kconfig:option:`CONFIG_NRF_SDH_BLE_SERVICE_CHANGED` Kconfig option.
* All instances of ``pm_peer_id_t`` to ``uint16_t`` and removed the ``pm_peer_id_t`` type.
* All instances of ``pm_store_token_t`` to ``uint32_t`` and removed the ``pm_store_token_t`` type.
* All instances of ``pm_sec_error_code_t`` to ``uint16_t`` and removed the ``pm_sec_error_code_t`` type.
* All instances of ``ble_gatt_db_srv_t`` to struct :c:struct:`ble_gatt_db_srv` and removed the ``ble_gatt_db_srv_t`` type.
* All instances of ``ble_gatt_db_char_t`` to struct :c:struct:`ble_gatt_db_char` and removed the ``ble_gatt_db_char_t`` type.
* All instances of ``pm_peer_id_list_skip_t`` to enum :c:enum:`pm_peer_id_list_skip` and removed the ``pm_peer_id_list_skip_t`` type.
* All instances of ``pm_peer_data_id_t`` to enum :c:enum:`pm_peer_data_id` and removed the ``pm_peer_data_id_t`` type.
* All instances of ``pm_conn_sec_procedure_t`` to enum :c:enum:`pm_conn_sec_procedure` and removed the ``pm_conn_sec_procedure_t`` type.
* All instances of ``pm_conn_sec_config_t`` to struct :c:struct:`pm_conn_sec_config` and removed the ``pm_conn_sec_config_t`` type.
* All instances of ``pm_peer_data_bonding_t`` to struct :c:struct:`pm_peer_data_bonding` and removed the ``pm_peer_data_bonding_t`` type.
* All instances of ``pm_peer_data_local_gatt_db_t`` to struct :c:struct:`pm_peer_data_local_gatt_db` and removed the ``pm_peer_data_local_gatt_db_t`` type.
* All instances of ``pm_privacy_params_t`` to :c:type:`ble_gap_privacy_params_t` and removed the ``pm_privacy_params_t`` type.
* All instances of ``pm_conn_sec_status_t`` to struct :c:struct:`pm_conn_sec_status` and removed the ``pm_conn_sec_status_t`` type.
* All instances of ``pm_evt_id_t`` to enum :c:enum:`pm_evt_id` and removed the ``pm_evt_id_t`` type.
* All instances of ``pm_conn_config_req_evt_t`` to struct :c:struct:`pm_conn_config_req_evt` and removed the ``pm_conn_config_req_evt_t`` type.
* All instances of ``pm_conn_sec_start_evt_t`` to struct :c:struct:`pm_conn_sec_start_evt` and removed the ``pm_conn_sec_start_evt_t`` type.
* All instances of ``pm_conn_secured_evt_t`` to struct :c:struct:`pm_conn_secured_evt` and removed the ``pm_conn_secured_evt_t`` type.
* All instances of ``pm_conn_secure_failed_evt_t`` to struct :c:struct:`pm_conn_secure_failed_evt` and removed the ``pm_conn_secure_failed_evt_t`` type.
* All instances of ``pm_conn_sec_params_req_evt_t`` to struct :c:struct:`pm_conn_sec_params_req_evt` and removed the ``pm_conn_sec_params_req_evt_t`` type.
* All instances of ``pm_peer_data_op_t`` to enum :c:enum:`pm_peer_data_op` and removed the ``pm_peer_data_op_t`` type.
* All instances of ``pm_peer_data_update_succeeded_evt_t`` to struct :c:struct:`pm_peer_data_update_succeeded_evt` and removed the ``pm_peer_data_update_succeeded_evt_t`` type.
* All instances of ``pm_peer_data_update_failed_t`` to struct :c:struct:`pm_peer_data_update_failed_evt` and removed the ``pm_peer_data_update_failed_t`` type.
* All instances of ``pm_failure_evt_t`` to struct :c:struct:`pm_failure_evt` and removed the ``pm_failure_evt_t`` type.
* All instances of ``pm_evt_t`` to struct :c:struct:`pm_evt` and removed the ``pm_evt_t`` type.

Samples
=======
Expand Down
10 changes: 5 additions & 5 deletions include/bm/bluetooth/peer_manager/ble_gatt_db.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extern "C" {
/**
* @brief Structure for holding the characteristic and the handle of its CCCD present on a server.
*/
typedef struct {
struct ble_gatt_db_char {
/** @brief Structure containing information about the characteristic. */
ble_gattc_char_t characteristic;
/**
Expand All @@ -55,13 +55,13 @@ typedef struct {
* descriptor is not present at the server.
*/
uint16_t report_ref_handle;
} ble_gatt_db_char_t;
};

/**
* @brief Structure for holding information about the service and the characteristics present on a
* server.
*/
typedef struct {
struct ble_gatt_db_srv {
/** @brief UUID of the service. */
ble_uuid_t srv_uuid;
/** @brief Number of characteristics present in the service. */
Expand All @@ -72,8 +72,8 @@ typedef struct {
* @brief Array of information related to the characteristics present in the service.
* This list can extend further than one.
*/
ble_gatt_db_char_t charateristics[BLE_GATT_DB_MAX_CHARS];
} ble_gatt_db_srv_t;
struct ble_gatt_db_char charateristics[BLE_GATT_DB_MAX_CHARS];
};

#ifdef __cplusplus
}
Expand Down
Loading