From 301c1482a1cc5cd70b12a0a513c2f6084c9c6578 Mon Sep 17 00:00:00 2001 From: Josef Brandl Date: Mon, 2 Apr 2018 20:44:49 +0200 Subject: [PATCH] Document that `setWill()` only works if it is called before `connect()` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b294c9f..8645d8b 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ void setHost(const char hostname[]); void setHost(const char hostname[], int port); ``` -Set a will message (last testament) that gets registered on the broker after connecting: +Set a will message (last testament) that gets registered on the broker after connecting. `setWill()` has to be called before calling `connect()`: ```c++ void setWill(const char topic[]);