Skip to content

Commit 301c148

Browse files
Document that setWill() only works if it is called before connect()
1 parent abe0711 commit 301c148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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[]);

0 commit comments

Comments
 (0)