edit of all config data via website
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user