feat: add version.txt support and template placeholders for setup/waage

This commit is contained in:
Manuel Weiser committed 2026-02-20 16:06:45 +01:00
1 parent d39d481c65
commit 0d9132127a
4 files changed
+33 -8

No files matched your search

+15
View File
@@ -50,6 +50,21 @@ bool loadJsonValue(const char* filename, JsonDocument& doc) {
return true;
}
String readFile(const char* filename) {
File file = LittleFS.open(filename, "r");
if (!file) {
Serial.print("Fehler beim Öffnen der Datei: ");
Serial.println(filename);
return "";
}
String content = "";
while (file.available()) {
content += (char)file.read();
}
file.close();
return content;
}
void initializeFileSystem() {
if (!LittleFS.begin(true)) {
Serial.println("LittleFS Mount Failed");