Allow setting of a will without also setting a username and password.
This commit is contained in:
parent
7e53f612f2
commit
62693d406c
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user