Client keep_alive is now parameterized

This commit is contained in:
hsaturn
2021-03-24 21:16:31 +01:00
parent 70cf8137de
commit 28c8713415
3 changed files with 4 additions and 3 deletions

View File

@@ -123,7 +123,7 @@ class MqttClient
~MqttClient();
void connect(MqttBroker* parent);
void connect(std::string broker, uint16_t port);
void connect(std::string broker, uint16_t port, uint16_t ka=10);
bool connected() { return
(parent!=nullptr and client==nullptr) or