Skip to content

Commit

Permalink
PubSubClient: Add disconnect type option
Browse files Browse the repository at this point in the history
Allow clean disconnect as optional.
This avoid the automatic deletion of LWT message in the broker for clean disconnections, in order to let LWT work also on all cases (Restart, Config Changes, etc) See #7189
  • Loading branch information
ascillato authored Dec 15, 2019
1 parent 946f6fd commit 0803294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PubSubClient-EspEasy-2.7.12/src/PubSubClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class PubSubClient : public Print {
boolean connect(const char* id, const char* willTopic, uint8_t willQos, boolean willRetain, const char* willMessage);
boolean connect(const char* id, const char* user, const char* pass, const char* willTopic, uint8_t willQos, boolean willRetain, const char* willMessage);
boolean connect(const char* id, const char* user, const char* pass, const char* willTopic, uint8_t willQos, boolean willRetain, const char* willMessage, boolean cleanSession);
void disconnect();
void disconnect(bool disconnect_package = false);
boolean publish(const char* topic, const char* payload);
boolean publish(const char* topic, const char* payload, boolean retained);
boolean publish(const char* topic, const uint8_t * payload, unsigned int plength);
Expand Down

0 comments on commit 0803294

Please sign in to comment.