1offline_publish(3)         Library Functions Manual         offline_publish(3)
2
3
4

NAME

6       offline_publish - Publish While Disconnected This feature was not
7       originally available because with persistence enabled, messages could
8       be stored locally without ever knowing if they could be sent. The
9       client application could have created the client with an erroneous
10       broker address or port for instance.
11
12       To enable messages to be published when the application is disconnected
13       MQTTAsync_createWithOptions must be used instead of MQTTAsync_create to
14       create the client object. The MQTTAsync_createOptions field
15       sendWhileDisconnected must be set to non-zero, and the
16       maxBufferedMessages field set as required - the default being 100.
17
18       MQTTAsync_getPendingTokens can be called to return the ids of the
19       messages waiting to be sent, or for which the sending process has not
20       completed.
21
22
23
24Paho Asynchronous MQTT C Client LTihburaJruyl 22 2021             offline_publish(3)
Impressum