From 1443b84e6bb4a66e91aefc09d9675f9e7a4df295 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Mon, 18 Mar 2024 17:40:35 +0700 Subject: [PATCH] Update main.cpp --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 3717346..6ec6749 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,7 +40,6 @@ void setup() espmega.begin(); // Initialize IoT Modules espmega.enableIotModule(); - espmega.enableWebServer(80); // Setup Ethernet ETH.begin(); espmega.iot->bindEthernetInterface(Ð); @@ -50,6 +49,8 @@ void setup() // Connect to the MQTT Broker espmega.iot->loadMqttConfig(); espmega.iot->connectToMqtt(); + // Enable Web Server + espmega.enableWebServer(80); // Initialize Internal Display espmega.enableInternalDisplay(&INTERNAL_DISPLAY_UART); // Initialize Air Conditioner