Fix build in Esp8266 mode

Modify dump() functions
This commit is contained in:
hsaturn
2021-04-28 18:51:01 +02:00
parent 20292b7b7b
commit e00e31de33
2 changed files with 19 additions and 22 deletions

View File

@@ -7,7 +7,6 @@
#else
#error Unsupported platform
#endif
#include <ESPmDNS.h>
#include <sstream>
#include <map>
@@ -630,14 +629,14 @@ void eval(std::string& cmd)
Serial << "--< " << clients.size() << " client/s. >--" << endl;
for(auto it: clients)
{
Serial << " "; it.second->dump();
it.second->dump(" ");
}
Serial << "--< " << brokers.size() << " brokers/s. >--" << endl;
for(auto it: brokers)
{
Serial << " ==[ Broker: " << it.first.c_str() << " ]== ";
it.second->dump();
Serial << " +-- '" << it.first.c_str() << "' " << it.second->clientsCount() << " client/s."<< endl;
it.second->dump(" ");
}
}
else if (compare(s, "reset"))