mirror of
https://github.com/alexhopeoconnor/arduino-home-assistant.git
synced 2026-10-04 02:48:13 +10:00
Co-authored-by: Allen Benter <allen.benter@dpi.nsw.gov.au>
This commit is contained in:
co-authored by
Allen Benter
parent
b0bc9b4ea7
commit
8e3aad90c4
@@ -183,6 +183,11 @@ bool HAMqtt::isConnected() const
|
||||
return _mqtt->connected();
|
||||
}
|
||||
|
||||
void HAMqtt::setKeepAlive(uint16_t keepAlive)
|
||||
{
|
||||
_mqtt->setKeepAlive(keepAlive);
|
||||
}
|
||||
|
||||
void HAMqtt::addDeviceType(HABaseDeviceType* deviceType)
|
||||
{
|
||||
if (_devicesTypesNb + 1 > _maxDevicesTypesNb) {
|
||||
|
||||
+6
-1
@@ -202,6 +202,11 @@ public:
|
||||
* Returns true if connection to the MQTT broker is established.
|
||||
*/
|
||||
bool isConnected() const;
|
||||
|
||||
/**
|
||||
* sets keepAlive value.
|
||||
*/
|
||||
void setKeepAlive(uint16_t keepAlive);
|
||||
|
||||
/**
|
||||
* Adds a new device's type to the MQTT.
|
||||
@@ -389,4 +394,4 @@ private:
|
||||
bool _lastWillRetain;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user