diff --git a/CHANGELOG.md b/CHANGELOG.md index 3323077..c82a3c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,12 @@ ## 2.1.0 +**New features:** +* Added support for setting MQTT's keep alive ([https://github.com/dawidchyrzynski/arduino-home-assistant/issues/153](#153)) + **Fixes:** -* Fixed a bug with the maximum number of device types (#190 by @martaisty) -* Fixed compiler warning: `class 'HANumeric' is implicitly friends with itself` (#197 by @shedokan) +* Fixed a bug with the maximum number of device types ([#190](https://github.com/dawidchyrzynski/arduino-home-assistant/issues/190) by [@martaisty](https://github.com/martaisty)) +* Fixed compiler warning: `class 'HANumeric' is implicitly friends with itself` ([#197](https://github.com/dawidchyrzynski/arduino-home-assistant/pull/197) by [@shedokan](https://github.com/shedokan)) ## 2.0.0 diff --git a/src/HAMqtt.h b/src/HAMqtt.h index 7819ff6..a607cca 100644 --- a/src/HAMqtt.h +++ b/src/HAMqtt.h @@ -202,9 +202,12 @@ public: * Returns true if connection to the MQTT broker is established. */ bool isConnected() const; - + /** - * sets keepAlive value. + * Sets keep alive for the MQTT connection. + * By default it's 15 seconds. + * + * @param keepAlive Number of seconds to keep connection alive. */ void setKeepAlive(uint16_t keepAlive);