feat: implement OTA functionality and update build scripts; change upgrade link to OTA in HTML

This commit is contained in:
2025-02-17 12:41:25 +01:00
parent 240795a2d0
commit 2a67d8f67c
6 changed files with 33 additions and 5 deletions

11
src/ota.cpp Normal file
View File

@ -0,0 +1,11 @@
#include <Arduino.h>
#include "ota.h"
#include <ESPAsyncWebServer.h>
#include <ESPAsyncHTTPUpdateServer.h>
ESPAsyncHTTPUpdateServer updateServer;
void setupOTA(AsyncWebServer &server) {
updateServer.setup(&server, "/ota", "admin", "admin");
//updateServer.setup(&server);
}