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

NAME

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