show website via mdns

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2026-01-05 23:47:00 +01:00
parent 29785a96bc
commit ebf0dc6556
15 changed files with 1549 additions and 5 deletions

View File

@@ -3,14 +3,20 @@
#include "esp_log.h"
#include "esp_spiffs.h"
#include "simulator.h"
#include <cstring>
#include <errno.h>
#include <stdio.h>
static const char *TAG = "storage";
static bool is_spiffs_mounted = false;
void initialize_storage()
{
if (is_spiffs_mounted)
{
return;
}
esp_vfs_spiffs_conf_t conf = {
.base_path = "/spiffs",
.partition_label = NULL,
@@ -36,6 +42,8 @@ void initialize_storage()
}
return;
}
is_spiffs_mounted = true;
}
void load_file(const char *filename)