compiling

This commit is contained in:
Dmitry Borisenko
2021-12-13 00:58:42 +01:00
parent 7486ba7438
commit b8a8290928
188 changed files with 14925 additions and 45 deletions

View File

@@ -1,10 +0,0 @@
#pragma once
#include "Global.h"
namespace HttpServer {
void initWS();
void init();
} // namespace HttpServer

12
include/SetupESP.h Normal file
View File

@@ -0,0 +1,12 @@
#pragma once
#include <Arduino.h>
#include <ArduinoJson.h>
#include <FS.h>
#include <StreamUtils.h>
#include "LittleFS.h"
#include "Utils/FileUtils.h"
#include "Utils/StringUtils.h"
extern void setupESP();

View File

@@ -5,54 +5,54 @@
#include "FileSystem.h"
/*
* Инициализация ФС
*/
* Инициализация ФС
*/
bool fileSystemInit();
/*
* Удалить файл
*/
* Удалить файл
*/
void removeFile(const String& filename);
/*
* Открыть файл на позиции
*/
* Открыть файл на позиции
*/
File seekFile(const String& filename, size_t position = 0);
/*
* Чтение строки из файла
* возвращает стоку из файла в которой есть искомое слово found
*/
* Чтение строки из файла
* возвращает стоку из файла в которой есть искомое слово found
*/
const String readFileString(const String& filename, const String& to_find);
/*
* Добовление строки в файл
*/
/*
* Добовление строки в файл
*/
const String addFileLn(const String& filename, const String& str);
/*
* Добовление строки в файл
*/
/*
* Добовление строки в файл
*/
const String addFile(const String& filename, const String& str);
/*
* Запись строки в файл
*/
* Запись строки в файл
*/
const String writeFile(const String& filename, const String& str);
/*
* Чтение файла в строку
*/
* Чтение файла в строку
*/
const String readFile(const String& filename, size_t max_size);
/*
* Посчитать
*/
* Посчитать
*/
size_t countLines(const String filename);
/*
* Размер файла
*/
* Размер файла
*/
size_t getFileSize(const String filename);
bool copyFile(const String& src, const String& dst, bool overwrite = true);
@@ -60,3 +60,5 @@ bool copyFile(const String& src, const String& dst, bool overwrite = true);
const String getFSSizeInfo();
const String getConfigFile(uint8_t preset, ConfigType_t type);
bool cutFile(const String& src, const String& dst);

View File

@@ -1,7 +1,8 @@
#pragma once
#include "HttpServer.h"
#include <Arduino.h>
#include "WebServer.h"
extern String getURL(const String& urls);
extern const String getMethodName(AsyncWebServerRequest* request);
extern const String getRequestInfo(AsyncWebServerRequest* request);

9
include/WebServer.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#include "Global.h"
extern void initOta();
extern void initMDNS();
extern void HttpServerinitWS();
extern void HttpServerinit();