IIOT MQTT Subscription

koppit
2022-04-17
2024-02-20
  • koppit - 2022-04-17

    Hi,

    I'm doing some home automation with Zigbee2MQTT and the MQTT_Client (1.2.0.0) 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?

    Greetings
    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.
    Ian

     
    πŸ‘
    2
    • 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.