# MQTT limited to 16 messages from Python

**URL:** <https://community.hivemq.com/t/mqtt-limited-to-16-messages-from-python/2767>\
**Category:** HiveMQ Cloud\
**Created:** [March 12, 2024, 3:50am UTC](https://community.hivemq.com/t/mqtt-limited-to-16-messages-from-python/2767 "2024-03-12T03:50:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dashlink](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dashlink](https://community.hivemq.com/u/dashlink)\
**Post date:** [March 12, 2024, 3:50am UTC](https://community.hivemq.com/t/mqtt-limited-to-16-messages-from-python/2767/1 "2024-03-12T03:50:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [March 19, 2024, 3:52pm UTC](https://community.hivemq.com/t/mqtt-limited-to-16-messages-from-python/2767/2 "2024-03-19T15:52:26Z")

</div>

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
