diff --git a/src/main.cpp b/src/main.cpp index 0b8ab9a..59768e6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -77,6 +77,7 @@ void setup() // Connect to the MQTT Broker ESP_LOGV("CUD IoT OS", "Connecting to MQTT Broker"); espmega.iot->loadMqttConfig(); + vTaskDelay(3000 / portTICK_PERIOD_MS); // Wait for the network to stabilize espmega.iot->connectToMqtt(); // Enable Web Server ESP_LOGV("CUD IoT OS", "Enabling Web Server");