27 lines
619 B
C++
27 lines
619 B
C++
#ifndef Files_h
|
|
#define Files_h
|
|
#include <Arduino.h>
|
|
#include <FS.h>
|
|
#include <LittleFS.h>
|
|
#include <time.h>
|
|
#include <ESP8266FtpServer.h>
|
|
|
|
|
|
class Files {
|
|
public :
|
|
Files();
|
|
bool getLocalTime(struct tm * info, uint32_t ms);
|
|
void deleteFile(const char * path);
|
|
void renameFile(const char * path1, const char * path2);
|
|
void appendFile(const char * path, const char * message);
|
|
void writeFile(const char * path, const char * message);
|
|
void readFile(const char * path);
|
|
void listDir(const char * dirname);
|
|
void init();
|
|
public:
|
|
FtpServer ftpSrv;
|
|
long timezone = 2;
|
|
byte daysavetime = 1;
|
|
};
|
|
|
|
#endif |