MQTT limited to 16 messages from Python

Hey everyone,

I am trying to send data from a python script at quite a fast rate for a school project. From the online cloud client, there appears to be no limit to the number of messages I can send or the speed at which I send them over a channel. However using MQTT in python results in a limit of around 16 messages before they stop appearing in the client. I have a JavaScript client on the other end who is supposed to subscribe to this channel, which also stops receiving new data after the 16th message.

I’ve tested this in a few ways, 1 using our test setup which sends a message whenever a Bluetooth message is transmitted over to our PC. 2, using its own python file, sending fixed data at a fixed rate, about one message every 0.5 seconds, to the same result. Speed doesn’t appear to have any issue, its purely the number of messages and the fact that they are being capped somehow.

If anyone has any ideas on how to fix this or why it might be happening, that would be very much appreciated

Hi @dashlink

hearty welcome to the HiveMQ Community! Your interest in MQTT and the HiveMQ broker is much appreciated. We’re always happy to see new users like you.

It seems like you’re encountering an issue with your MQTT Python client where messages stop appearing after a certain limit. To assist you better, it would be helpful if you could provide the code for your Python client. This would allow others to run it and attempt to reproduce the error, facilitating a more accurate diagnosis and solution. Please share the link to your Python client’s repo so that we can assist you further. Thank you!

Dasha from HiveMQ Team