Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT error [-12]: No more messages can be buffered #34

Open
HaogeZhou opened this issue Oct 2, 2023 · 1 comment
Open

MQTT error [-12]: No more messages can be buffered #34

HaogeZhou opened this issue Oct 2, 2023 · 1 comment

Comments

@HaogeZhou
Copy link

Hi All,
I write a easy script trying to publish a 1MB txt file to the specific topic that connected with broker.
But I met the error following.

[ WARN] [1696218984.040646955]: Publishing ROS message type information to MQTT topic 'mqtt_client/ros_msg_type/pingpong/ros' failed: MQTT error [-12]: No more messages can be buffered
[ WARN] [1696218984.041366993]: Publishing ROS message type information to MQTT topic 'pingpong/ros' failed: MQTT error [-12]: No more messages can be buffered

How to increase the buffer size?

@bastilam
Copy link
Member

bastilam commented Oct 2, 2023

Before increasing the buffer size, I would recommend to find out why the buffer is not sufficient. Possibly, you are publishing more data than your system can handle, and increasing the buffer size will only lead to a delay of the same warning, but it will not solve it, because the buffer will be full just a little later.

At what frequency are you publishing the 1 MB data? Maybe you can try to decrease this frequency. If you don't necessarily need to publish 1 MB, but a smaller amount of data would also suffice, you could also try this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants