Coder Social home page Coder Social logo

Max topic length about pubsubclient HOT 6 CLOSED

knolleary avatar knolleary commented on May 29, 2024
Max topic length

from pubsubclient.

Comments (6)

knolleary avatar knolleary commented on May 29, 2024

Hi - what do you call long?

As documented, by default, there is an overall limit of 128 bytes for any packet sent or received. This can be increased by changing the MQTT_MAX_PACKET_SIZE #define in PubSubClient.h

from pubsubclient.

gitmaster2013 avatar gitmaster2013 commented on May 29, 2024

Thanks for the quick reply!
So I guess that means there is just the adjustable 128 bytes limit. I found the MQTT_MAX_PACKET_SIZE, but I am having trouble subscribing to topics longer than 23 characters. I checked that the over all message is less than 128 bytes. I am having trouble locating my problem. Could it be the Arduino running out of me memory?

from pubsubclient.

knolleary avatar knolleary commented on May 29, 2024

By "not working", can you describe what you mean? Is it simply that the messages don't arrive, or does the entire sketch fail to work?

It would useful to confirm if the sketch is otherwise running happily - that would rule out memory issues, otherwise the sketch would be continually resetting.

from pubsubclient.

knolleary avatar knolleary commented on May 29, 2024

@gitmaster2013 any news on this or can I close the issue?

from pubsubclient.

gitmaster2013 avatar gitmaster2013 commented on May 29, 2024

Sorry for the holdup! I found a workaround for the problem. I assume there was a RAM overflow of some kind. The Mega32 just didn't seem to have enough power. Thanks for checking back with me!

from pubsubclient.

knolleary avatar knolleary commented on May 29, 2024

Thanks for the update - closing the issue.

from pubsubclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.