Skip to content

Commit f6aa15b

Browse files
committed
Merge branch 'master' of https://github.com/256dpi/arduino-mqtt
2 parents b0a5f65 + 6a838cc commit f6aa15b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void setHost(const char hostname[]);
117117
void 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++
123123
void setWill(const char topic[]);
@@ -144,7 +144,7 @@ Set more advanced options:
144144
void 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

0 commit comments

Comments
 (0)