edit of all config data via website

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2026-01-25 00:14:52 +01:00
parent df50aaedda
commit c28d7d08df
24 changed files with 1790 additions and 2967 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include "esp_err.h"
#ifdef __cplusplus
extern "C"
{
@@ -8,6 +10,14 @@ extern "C"
void load_file(const char *filename);
char **read_lines_filtered(const char *filename, int *out_count);
void free_lines(char **lines, int count);
/**
* Write an array of lines to a file (CSV or other text).
* @param filename File name (without /spiffs/)
* @param lines Array of lines (null-terminated strings)
* @param count Number of lines
* @return ESP_OK on success, error code otherwise
*/
esp_err_t write_lines(const char *filename, char **lines, int count);
#ifdef __cplusplus
}
#endif