/* Function to set the peer ID associated with a connection handle.  */
static void peer_id_set(uint16_t conn_handle, pm_peer_id_t peer_id)
/* Function to set the peer ID associated with a connection handle.  */
static void peer_id_set(uint16_t conn_handle, pm_peer_id_t peer_id)
{
    uint8_t conn_index = get_connection_by_conn_handle(conn_handle);
    if (conn_index != IM_NO_INVALID_CONN_HANDLES)
    {
        m_im.connections[conn_index].peer_id = peer_id;
    }
}