<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Importing a library overrides parameters of a referenced library</title><link>https://forge.codesys.com/forge/talk/Engineering/thread/f9aa4dc6aa/</link><description>Recent posts to Importing a library overrides parameters of a referenced library</description><language>en</language><lastBuildDate>Mon, 04 May 2026 15:02:15 -0000</lastBuildDate><atom:link href="https://forge.codesys.com/forge/talk/Engineering/thread/f9aa4dc6aa/feed.rss" rel="self" type="application/rss+xml"></atom:link><item><title>Importing a library overrides parameters of a referenced library</title><link>https://forge.codesys.com/forge/talk/Engineering/thread/f9aa4dc6aa/?limit=25#66c1</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In my CODESYS project (&lt;code&gt;ABC.project&lt;/code&gt;), I’m using the MQTT library. I’ve also created a separate library (&lt;code&gt;DEF.library&lt;/code&gt;) which itself references the MQTT library.&lt;/p&gt;
&lt;p&gt;In ABC.project, I’ve customized some MQTT parameters—for example, setting &lt;code&gt;g_udiMaxPublishersAndSubscribers&lt;/code&gt; to &lt;code&gt;100&lt;/code&gt; instead of the default value of &lt;code&gt;20&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;However, when I import &lt;code&gt;DEF.library&lt;/code&gt; into &lt;code&gt;ABC.project&lt;/code&gt;, the MQTT parameters get reset to their default values. I assume this happens because &lt;code&gt;DEF.library&lt;/code&gt; still uses the default MQTT configuration, which then overrides my project settings.&lt;/p&gt;
&lt;p&gt;A straightforward workaround would be to manually align the parameter values in &lt;code&gt;DEF.library&lt;/code&gt;, but that doesn’t feel like the right approach.&lt;/p&gt;
&lt;p&gt;Is there a better or recommended way to handle this situation? I'm using SP18 Patch3.&lt;/p&gt;
&lt;p&gt;Any insights would be greatly appreciated. Thanks in advance!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">etgau</dc:creator><pubDate>Mon, 04 May 2026 15:02:15 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com76db97c9600e6596e38f998b83800a8875ab7210</guid></item></channel></rss>