From 62693d406cafa588705fefa136e2b2faab09e028 Mon Sep 17 00:00:00 2001 From: Joby Taffey Date: Fri, 13 Jul 2012 16:34:45 +0100 Subject: [PATCH] Allow setting of a will without also setting a username and password. --- PubSubClient/PubSubClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PubSubClient/PubSubClient.cpp b/PubSubClient/PubSubClient.cpp index 2b8c196..da13dc0 100755 --- a/PubSubClient/PubSubClient.cpp +++ b/PubSubClient/PubSubClient.cpp @@ -33,7 +33,7 @@ boolean PubSubClient::connect(char *id, char *user, char *pass) { boolean PubSubClient::connect(char *id, char* willTopic, uint8_t willQos, uint8_t willRetain, char* willMessage) { - return connect(id,NULL,NULL,0,0,0,0); + return connect(id,NULL,NULL,willTopic,willQos,willRetain,willMessage); } boolean PubSubClient::connect(char *id, char *user, char *pass, char* willTopic, uint8_t willQos, uint8_t willRetain, char* willMessage) {