Release 0.7.0

This commit is contained in:
hsaturn
2021-03-28 22:46:12 +02:00
parent 213d637eaf
commit 5f46fd304c
2 changed files with 141 additions and 0 deletions

View File

@@ -121,6 +121,7 @@ class MqttClient
};
public:
MqttClient(MqttBroker*);
MqttClient(MqttBroker* brk, const std::string& id) : MqttClient(brk) { clientId=id; }
MqttClient() : MqttClient(nullptr) {};
~MqttClient();
@@ -225,6 +226,8 @@ class MqttBroker
void connect(std::string host, uint32_t port=1883);
bool connected() const { return state == Connected; }
size_t clientsCount() const { return clients.size(); }
void dump()
{
Serial << clients.size() << " client/s" << endl;