mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Организация файлов, компилируемая версия
This commit is contained in:
18
include/EspFileSystem.h
Normal file
18
include/EspFileSystem.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include "Global.h"
|
||||
#include "LittleFS.h"
|
||||
|
||||
extern FS LittleFS;
|
||||
using littlefs_impl::LittleFSConfig;
|
||||
extern FS* filesystem;
|
||||
#define FileFS LittleFS
|
||||
#define FS_NAME "LittleFS"
|
||||
|
||||
extern bool fileSystemInit();
|
||||
|
||||
extern File seekFile(const String& filename, size_t position = 0);
|
||||
extern const String writeFile(const String& filename, const String& str);
|
||||
extern const String readFile(const String& filename, size_t max_size);
|
||||
extern const String filepath(const String& filename);
|
||||
extern bool cutFile(const String& src, const String& dst);
|
||||
6
include/Global.h
Normal file
6
include/Global.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <ArduinoJson.h>
|
||||
#include <FS.h>
|
||||
#include <StreamUtils.h>
|
||||
@@ -1,14 +1,6 @@
|
||||
#include <Arduino.h>
|
||||
#include <ArduinoJson.h>
|
||||
#include <FS.h>
|
||||
#include <StreamUtils.h>
|
||||
|
||||
#include "LittleFS.h"
|
||||
|
||||
extern FS LittleFS;
|
||||
using littlefs_impl::LittleFSConfig;
|
||||
extern FS* filesystem;
|
||||
#define FileFS LittleFS
|
||||
#define FS_NAME "LittleFS"
|
||||
#pragma once
|
||||
#include "EspFileSystem.h"
|
||||
#include "Global.h"
|
||||
#include "rest.h"
|
||||
|
||||
void setupESP();
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
#include "main.h"
|
||||
#pragma once
|
||||
#include "Global.h"
|
||||
|
||||
File seekFile(const String& filename, size_t position = 0);
|
||||
const String writeFile(const String& filename, const String& str);
|
||||
const String readFile(const String& filename, size_t max_size);
|
||||
const String filepath(const String& filename);
|
||||
bool fileSystemInit();
|
||||
String prettyBytes(size_t size);
|
||||
bool cutFile(const String& src, const String& dst);
|
||||
String prettyBytes(size_t size);
|
||||
Reference in New Issue
Block a user