Code clean

This commit is contained in:
hsaturn
2021-03-29 23:56:36 +02:00
parent d5dd896b45
commit 97adc985e6
2 changed files with 6 additions and 6 deletions

View File

@@ -222,9 +222,9 @@ class MqttBroker
void begin() { server.begin(); }
void loop();
uint8_t port() const { return server.port(); }
uint16_t port() const { return server.port(); }
void connect(std::string host, uint32_t port=1883);
void connect(std::string host, uint16_t port=1883);
bool connected() const { return state == Connected; }
size_t clientsCount() const { return clients.size(); }

View File

@@ -124,15 +124,15 @@ test(local_nocallback_when_destroyed)
//----------------------------------------------------------------------------
// setup() and loop()
void setup() {
delay(1000);
Serial.begin(115200);
while(!Serial);
delay(1000);
Serial.begin(115200);
while(!Serial);
Serial.println("=============[ NO WIFI CONNECTION TinyMqtt TESTS ]========================");
}
void loop() {
aunit::TestRunner::run();
aunit::TestRunner::run();
if (Serial.available()) ESP.reset();
}