Skip to content

Commit

Permalink
Minor typo changes and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hsaturn committed Feb 23, 2023
1 parent a880a1f commit 2587371
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TinyMqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(); }
Expand Down

0 comments on commit 2587371

Please sign in to comment.