From 4c3bc6976e15f09819b92dafa0da02098363807f Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sun, 17 Mar 2024 22:04:23 +0700 Subject: [PATCH] enable webserver --- platformio.ini | 3 ++- src/main.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index eb65d40..1916350 100644 --- a/platformio.ini +++ b/platformio.ini @@ -12,4 +12,5 @@ platform = espressif32 board = wt32-eth01 framework = arduino -lib_deps = siwats/ESPMegaPROR3@^2.3.8 \ No newline at end of file +lib_deps = siwats/ESPMegaPROR3@^2.3.8 +monitor_speed = 115200 \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 5a91c7a..3717346 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,6 +40,7 @@ void setup() espmega.begin(); // Initialize IoT Modules espmega.enableIotModule(); + espmega.enableWebServer(80); // Setup Ethernet ETH.begin(); espmega.iot->bindEthernetInterface(Ð);