Skip to content

Commit 812ac66

Browse files
Jindrich Dolezy256dpi
Jindrich Dolezy
authored andcommitted
Pass skip parameter in connect calls
1 parent 70a6eb2 commit 812ac66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MQTTClient.h

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ class MQTTClient {
270270
this->timeout = (uint32_t)timeout;
271271
}
272272

273-
bool connect(const char clientId[], bool skip = false) { return this->connect(clientId, nullptr, nullptr); }
273+
bool connect(const char clientId[], bool skip = false) { return this->connect(clientId, nullptr, nullptr, skip); }
274274

275-
bool connect(const char clientId[], const char username[], bool skip = false) { return this->connect(clientId, username, nullptr); }
275+
bool connect(const char clientId[], const char username[], bool skip = false) { return this->connect(clientId, username, nullptr, skip); }
276276

277277
bool connect(const char clientId[], const char username[], const char password[], bool skip = false) {
278278
// close left open connection if still connected

0 commit comments

Comments
 (0)