From 2b9796732621560c5ed36ece8954b7df65209321 Mon Sep 17 00:00:00 2001 From: Stefan Ostermann Date: Sun, 4 Jun 2023 12:49:25 +0200 Subject: [PATCH] webserver --- platformio.ini | 2 + src/WebContent.h | 14 ++--- src/main.cpp | 158 ++++++++++++++++++++++++++++------------------- 3 files changed, 102 insertions(+), 72 deletions(-) diff --git a/platformio.ini b/platformio.ini index bc8dc93..cbcf853 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,4 +16,6 @@ lib_deps = esphome/ESP32-audioI2S@^2.0.7 me-no-dev/AsyncTCP@^1.1.1 me-no-dev/ESP Async WebServer@^1.2.3 + alanswx/ESPAsyncWiFiManager@^0.31 monitor_speed = 115200 +board_build.partitions = huge_app.csv diff --git a/src/WebContent.h b/src/WebContent.h index e02b20f..4b2d7b5 100644 --- a/src/WebContent.h +++ b/src/WebContent.h @@ -1,8 +1,8 @@ // HTML web page -const char index_html[] = R"rawliteral( +const char index_html[] PROGMEM = R"rawliteral( - Hanna Box + HannaBox -

Greenhousino Irrigation System

- Pump state:

-

-

-

+

HannaBox

+ + Playing %PLAYING%

+

+