Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] how to control messages per second with paho publisher


it can depend on what you want to achieve.  There is no built in mechanism, if that's what you're asking.

If you want to keep track of how many messages are currently in flight, with the MQTTAsync API you can track the difference between the number of message send requests and the number of onSuccess callbacks received.  That way the application can control the number of send requests to the desired number.

On 15/01/2021 15:25, fast cieff wrote:
I want to limit the number of messages per second using paho c publisher. Any idea how to control it?


paho-dev mailing list
To unsubscribe from this list, visit
Ian Craggs
Eclipse IoT PMC; Eclipse Paho Project Lead; OASIS MQTT TC Member

Back to the top