I want to control the number of messages sent per second when the persistence type is set to MQTTCLIENT_PERSISTENCE_DEFAULT.
So, for example consider that the internet is disconnected/down for 1 hour and in this 1 hour 100 messages are generated. When the connectivity is back then I see that all 100 messages are sent in burst.
I want to limit this to say 10 messages per second? Is there a way to achieve this? Will setting "maxInflight" help solve the problem?