From ab0c3400141428ae49c8402aa4c0d43f4f4da92b Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Fri, 17 May 2024 22:15:06 +0700 Subject: [PATCH] network port delay --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) 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");