Initial commit
This commit is contained in:
29
include/littlefs_wrapper.h
Normal file
29
include/littlefs_wrapper.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#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 */
|
||||
Reference in New Issue
Block a user