mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
compiling
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Global.h"
|
||||
|
||||
namespace HttpServer {
|
||||
|
||||
void initWS();
|
||||
void init();
|
||||
|
||||
} // namespace HttpServer
|
||||
12
include/SetupESP.h
Normal file
12
include/SetupESP.h
Normal 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();
|
||||
@@ -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);
|
||||
|
||||
@@ -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
9
include/WebServer.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "Global.h"
|
||||
|
||||
extern void initOta();
|
||||
extern void initMDNS();
|
||||
|
||||
extern void HttpServerinitWS();
|
||||
extern void HttpServerinit();
|
||||
Reference in New Issue
Block a user