Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Offline Buffering in C client

I don't remember setting a maximum for the maximum!  What I would say, is that this is not a good place to store a large amount of data.  It's a temporary resting place.

Ian


On 20/02/2018 18:30, Said Uçar wrote:

Hi Ian,


Is there any maximum limit for maxBufferedMessages parameter or it depends on the memory (INT_MAX in other words)?


Best Regards,

Said U.


On 20-02-2018 17:35, Ian Craggs wrote:

Hi Said,

it is implemented.  There is a setting for the maximum number of buffered messages:

https://www.eclipse.org/paho/files/mqttdoc/MQTTAsync/html/struct_m_q_t_t_async__create_options.html#a3b74acf6f315bb5fe36266bc9647ee97

Also, by checking the callback responses to publish, the application can keep track of how many messages are still outstanding, when the QoS > 0.  (QoS 0 messages have no responses so there is less feedback).

Ian


On 20/02/2018 07:01, Said Uçar wrote:
Hi Everybody,

I just want to be sure that C client has offline sending feature (in Async client)? I saw comment that says " *    Ian Craggs - automatic reconnect and offline buffering (send while disconnected) " on MQTTAsync.h, however I'm not sure if it is implemented or feature enhancement. If offline buffering implemented, are there any configuration available to use in application (Setting the max number of messages that will be stored offline etc.)?

Best Regards,
Said U.


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Eclipse Paho Project Lead & Mosquitto Committer


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Eclipse Paho Project Lead & Mosquitto Committer

Back to the top