Update main.cpp

This commit is contained in:
Siwat Sirichai 2024-03-18 17:40:35 +07:00
parent 03f08be184
commit 1443b84e6b
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,6 @@ void setup()
espmega.begin();
// Initialize IoT Modules
espmega.enableIotModule();
espmega.enableWebServer(80);
// Setup Ethernet
ETH.begin();
espmega.iot->bindEthernetInterface(&ETH);
@ -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