30 lines
696 B
C
30 lines
696 B
C
#ifndef LITTLEFS_WRAPPER_H
|
|
#define LITTLEFS_WRAPPER_H
|
|
|
|
#include <Arduino.h>
|
|
|
|
#define USE_LittleFS
|
|
|
|
//#define DEBUGGING // Einkommentieren für die Serielle Ausgabe
|
|
|
|
#ifdef DEBUGGING
|
|
#define DEBUG_B(...) Serial.begin(__VA_ARGS__)
|
|
#define DEBUG_P(...) Serial.println(__VA_ARGS__)
|
|
#define DEBUG_F(...) Serial.printf(__VA_ARGS__)
|
|
#else
|
|
#define DEBUG_B(...)
|
|
#define DEBUG_P(...)
|
|
#define DEBUG_F(...)
|
|
#endif
|
|
|
|
bool handle_file(String &&path);
|
|
bool handle_list();
|
|
const String format_bytes(size_t const &bytes);
|
|
void delete_recursive(const String &path);
|
|
void format_filesystem();
|
|
void handle_upload();
|
|
void send_response();
|
|
void setup_filesystem();
|
|
|
|
#endif /* LITTLEFS_WRAPPER_H */
|