etgau - 2026-05-04

Hi,

In my CODESYS project (ABC.project), I’m using the MQTT library. I’ve also created a separate library (DEF.library) which itself references the MQTT library.

In ABC.project, I’ve customized some MQTT parameters—for example, setting g_udiMaxPublishersAndSubscribers to 100 instead of the default value of 20.

However, when I import DEF.library into ABC.project, the MQTT parameters get reset to their default values. I assume this happens because DEF.library still uses the default MQTT configuration, which then overrides my project settings.

A straightforward workaround would be to manually align the parameter values in DEF.library, but that doesn’t feel like the right approach.

Is there a better or recommended way to handle this situation? I'm using SP18 Patch3.

Any insights would be greatly appreciated. Thanks in advance!