From 2587371457e6eb5366ef03444c8aa131fa663ec8 Mon Sep 17 00:00:00 2001 From: Francois BIOT Date: Thu, 23 Feb 2023 19:24:27 +0100 Subject: [PATCH] Minor typo changes and add comments --- src/TinyMqtt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TinyMqtt.h b/src/TinyMqtt.h index ef69982..8f7149b 100644 --- a/src/TinyMqtt.h +++ b/src/TinyMqtt.h @@ -321,7 +321,7 @@ class MqttBroker { Disconnected, // Also the initial state Connecting, // connect and sends a fake publish to avoid circular cnx - Connected, // this->broker is connected and circular cnx avoided + Connected, // this->broker is connected and circular cnx avoided }; public: // TODO limit max number of clients @@ -331,7 +331,9 @@ class MqttBroker void begin() { server->begin(); } void loop(); + /** Connect the broker to a parent broker */ void connect(const string& host, uint16_t port=1883); + /** returns true if connected to another broker */ bool connected() const { return state == Connected; } size_t clientsCount() const { return clients.size(); }