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

Hi,

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:
Hi,
I want to limit the number of messages per second using paho c publisher. Any idea how to control it?

Thanks

_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/paho-dev
-- 
Ian Craggs
Eclipse IoT PMC; Eclipse Paho Project Lead; OASIS MQTT TC Member

Back to the top