Skip to content

Commit 6a838cc

Browse files
authored
Merge pull request #105 from MajorBreakfast/patch-2
Document that `setWill()` only works if it is called before `connect()`
2 parents 6b8027d + 301c148 commit 6a838cc

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)