#include <Arduino.h>
#include <WiFi.h>
#include <SPIFFS.h>
#include <WebServer.h>
// Настройки Wi-Fi
const char* ssid = "";
const char* password = "";
// Создаем объект WebServer на порту 80
WebServer server(80);
// Функция для получения информации о размере SPIFFS
String getSPIFFSInfo() {
size_t totalBytes = SPIFFS.totalBytes();
size_t usedBytes = SPIFFS.usedBytes();
String output = "<h3>Информация о SPIFFS</h3>";
output += "<p>Общий размер: " + String(totalBytes) + " байт</p>";
output += "<p>Использовано: " + String(usedBytes) + " байт</p>";
output += "<p>Свободно: " + String(totalBytes - usedBytes) + " бай
...
Читать дальше »