Initial workingHelloWorld Web Server

This commit is contained in:
Siwat Sirichai 2024-01-01 13:28:15 +07:00
parent f8661dd4a1
commit 8c43d260d0
5 changed files with 66 additions and 3 deletions

View file

@ -9,6 +9,7 @@
#define CLIMATE_CARD_ENABLE
#define MQTT_CARD_REGISTER
#define DISPLAY_ENABLE
#define WEB_SERVER_ENABLE
// Demo PLC firmware using the ESPMegaPRO OOP library
@ -141,6 +142,10 @@ void setup()
ESP_LOGI("Initializer", "Binding climate card to internal display");
espmega.display->bindClimateCard(&climateCard);
#endif
#ifdef WEB_SERVER_ENABLE
ESP_LOGI("Initializer", "Enabling web server");
espmega.enableWebServer(80);
#endif
}
void loop()