Merge branch 'webserver'
This commit is contained in:
commit
80b0509689
@ -11,6 +11,7 @@ Scheduler ts;
|
|||||||
#include "mqtt.h"
|
#include "mqtt.h"
|
||||||
#include "ota.h"
|
#include "ota.h"
|
||||||
#include "wifi.h"
|
#include "wifi.h"
|
||||||
|
#include "webserver.h"
|
||||||
|
|
||||||
namespace Board {
|
namespace Board {
|
||||||
|
|
||||||
@ -46,10 +47,12 @@ namespace Board {
|
|||||||
[] {
|
[] {
|
||||||
Ota::tLoop.enable();
|
Ota::tLoop.enable();
|
||||||
Mqtt::tReConnect.enable();
|
Mqtt::tReConnect.enable();
|
||||||
|
WebServer::setup();
|
||||||
},
|
},
|
||||||
[] {
|
[] {
|
||||||
Ota::tLoop.disable();
|
Ota::tLoop.disable();
|
||||||
Mqtt::tReConnect.disable();
|
Mqtt::tReConnect.disable();
|
||||||
|
WebServer::stop();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
Ota::setup(
|
Ota::setup(
|
||||||
@ -57,6 +60,7 @@ namespace Board {
|
|||||||
Mqtt::publishCleanupConfig();
|
Mqtt::publishCleanupConfig();
|
||||||
delay(2000);
|
delay(2000);
|
||||||
Mqtt::disconnect();
|
Mqtt::disconnect();
|
||||||
|
WebServer::stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
tReadCommand.enable();
|
tReadCommand.enable();
|
||||||
|
|||||||
@ -33,8 +33,10 @@ framework = arduino
|
|||||||
lib_deps =
|
lib_deps =
|
||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
arkhipenko/TaskScheduler@^3.8.5
|
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
|
https://git.hodos.ro/libraries/wifi.git@^2.0.0
|
||||||
|
esphome/ESPAsyncWebServer-esphome@^3.4.0
|
||||||
upload_port = 192.168.6.161
|
upload_port = 192.168.6.161
|
||||||
upload_protocol = espota
|
upload_protocol = espota
|
||||||
upload_flags =
|
upload_flags =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user