Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

IIOT MQTT Subscription

  • koppit - 2022-04-17


    I'm doing some home automation with Zigbee2MQTT and the MQTT_Client ( from IIoT Libraries SL.
    I have only been able to subscribe to 12 out of maybe 50 devices. Those are the 12 first in the program.
    If i comment out one of the 12, the 13th is subscribed to.

    Is there a limit to how many subscriptions the MQTT client can handle?
    Is there a way to add more?

    Jan Magne!

  • i-campbell

    i-campbell - 2022-04-17

    Hi Jan. If you open the library in library manager, you can edit the limits in MQTT.Params.

    • koppit - 2022-04-17

      Thanks, increasing "g_udiMaxPublishersAndSubscribers" solved my issue.

    • auto1254 - 2024-02-20

      hi, I had the same error, but after doing this I was unable to connect more than 50 subscriptions to the same client, is there any way to help?

      • i-campbell

        i-campbell - 2024-02-20

        I think it is a similar issue, but different.

        I saw you use AWS IoT Core. AWS limits you in this - search in page here for text "Subscriptions per connection" it is 50, cannot be changed.


Log in to post a comment.