FileUtils, some typos fixes

This commit is contained in:
Yuri Trikoz
2020-06-20 17:12:59 +03:00
parent 6f310e5e07
commit de5a9c01d0
12 changed files with 354 additions and 210 deletions

30
include/Utils/FileUtils.h Normal file
View File

@@ -0,0 +1,30 @@
#pragma once
#include <Arduino.h>
#include <FS.h>
/*
* Чтение строки из файла
* возвращает стоку из файла в которой есть искомое слово found
*/
String readFileString(const String& filename, const String& str_to_found);
/*
* Добовление строки в файл
*/
String addFile(const String& fileName, const String& str);
/*
* Запись строки в файл
*/
String writeFile(const String& fileName, const String& str);
/*
* Чтение файла в строку
*/
String readFile(const String& fileName, size_t len);
/*
* Размер файла
*/
String sizeFile(const String& fileName);

View File

@@ -16,4 +16,8 @@ String deleteBeforeDelimiter(String str, String found);
String deleteBeforeDelimiterTo(String str, String found);
String selectFromMarkerToMarker(String str, String found, int number);
String selectFromMarkerToMarker(String str, String found, int number);
size_t itemsCount(String str, const String& separator);
boolean isDigitStr(const String&);

View File

@@ -11,9 +11,17 @@ void reconfigTime();
/*
* Получение текущего времени
*/
String GetTime();
String getTime();
/*
* Получаем время в формате linux gmt
*/
String getTimeUnix();
String GetTimeUnix();
/*
* Параметр время
* Результат выполнения
*/
boolean getUnixTimeStr(String&);
String GetTimeWOsec();