first commit
This commit is contained in:
27
ESP8266_DOMOTICZ_OCTOPRINT_WEB/Files.h
Normal file
27
ESP8266_DOMOTICZ_OCTOPRINT_WEB/Files.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user