Merge branch 'webserver'

This commit is contained in:
Nicu Hodos 2025-09-06 22:06:22 +02:00
commit 80b0509689
2 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,7 @@ Scheduler ts;
#include "mqtt.h"
#include "ota.h"
#include "wifi.h"
#include "webserver.h"
namespace Board {
@ -46,10 +47,12 @@ namespace Board {
[] {
Ota::tLoop.enable();
Mqtt::tReConnect.enable();
WebServer::setup();
},
[] {
Ota::tLoop.disable();
Mqtt::tReConnect.disable();
WebServer::stop();
}
);
Ota::setup(
@ -57,6 +60,7 @@ namespace Board {
Mqtt::publishCleanupConfig();
delay(2000);
Mqtt::disconnect();
WebServer::stop();
});
tReadCommand.enable();

View File

@ -33,8 +33,10 @@ framework = arduino
lib_deps =
${env.lib_deps}
arkhipenko/TaskScheduler@^3.8.5
https://git.hodos.ro/libraries/ha-mqtt.git@^1.7.0
https://git.hodos.ro/libraries/ha-mqtt.git@^1.8.0
https://git.hodos.ro/libraries/ha-webserver.git@^0.1.0
https://git.hodos.ro/libraries/wifi.git@^2.0.0
esphome/ESPAsyncWebServer-esphome@^3.4.0
upload_port = 192.168.6.161
upload_protocol = espota
upload_flags =