Fixed an issue with clean session flag set when willTopic is provided
This commit is contained in:
@ -141,7 +141,7 @@ boolean PubSubClient::connect(const char *id, const char *user, const char *pass
|
|||||||
|
|
||||||
uint8_t v;
|
uint8_t v;
|
||||||
if (willTopic) {
|
if (willTopic) {
|
||||||
v = 0x06|(willQos<<3)|(willRetain<<5);
|
v = 0x04|(willQos<<3)|(willRetain<<5);
|
||||||
} else {
|
} else {
|
||||||
v = 0;
|
v = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user