Allow setting of a will without also setting a username and password.

This commit is contained in:
Joby Taffey 2012-07-13 16:34:45 +01:00
parent 7e53f612f2
commit 62693d406c

View File

@ -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) 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) { boolean PubSubClient::connect(char *id, char *user, char *pass, char* willTopic, uint8_t willQos, uint8_t willRetain, char* willMessage) {