File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ void setHost(const char hostname[]);
117117void setHost(const char hostname[ ] , int port);
118118```
119119
120- Set a will message (last testament) that gets registered on the broker after connecting:
120+ Set a will message (last testament) that gets registered on the broker after connecting. `setWill()` has to be called before calling `connect()` :
121121
122122```c++
123123void setWill(const char topic[]);
@@ -144,7 +144,7 @@ Set more advanced options:
144144void setOptions(int keepAlive, bool cleanSession, int timeout);
145145```
146146
147- - The ` keepAlive ` option controls the keep alive interval (default: 10).
147+ - The ` keepAlive ` option controls the keep alive interval in seconds (default: 10).
148148- The ` cleanSession ` option controls the session retention on the broker side (default: true).
149149- The ` timeout ` option controls the default timeout for all commands in milliseconds (default: 1000).
150150
You can’t perform that action at this time.
0 commit comments